Skip to content
Snippets Groups Projects
Commit 1e191cc8 authored by ReinUsesLisp's avatar ReinUsesLisp
Browse files

video_core: Enforce C4715 (not all control paths return a value)

Most of the time people write code that always returns a value,
terminates execution, throws an exception, or uses an unconventional
jump primitive.

This is not always true when we build without asserts on mainline builds.
To avoid introducing undefined behavior on our most used builds, enforce
this warning signalling an error and stopping the build from shipping.
parent 5dbda226
No related branches found
No related tags found
No related merge requests found
......@@ -303,6 +303,7 @@ if (MSVC)
/we4457 # Declaration of 'identifier' hides function parameter
/we4458 # Declaration of 'identifier' hides class member
/we4459 # Declaration of 'identifier' hides global declaration
/we4715 # 'function' : not all control paths return a value
)
else()
target_compile_options(video_core PRIVATE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment