diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-12-24 21:01:23 -0300 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-12-24 21:01:23 -0300 |
commit | 1e191cc837cf9ff38e5d5566919be54654d185b9 (patch) | |
tree | 57f23feaa39b010afa364ac0b85292aea0663ab8 /src | |
parent | 5dbda226593f1f8934c811963990083a23b220bf (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/video_core/CMakeLists.txt b/src/video_core/CMakeLists.txt index a021d61f5..90f533730 100644 --- a/src/video_core/CMakeLists.txt +++ b/src/video_core/CMakeLists.txt @@ -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 |