summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2020-12-24 21:01:23 -0300
committerGravatar ReinUsesLisp2020-12-24 21:01:23 -0300
commit1e191cc837cf9ff38e5d5566919be54654d185b9 (patch)
tree57f23feaa39b010afa364ac0b85292aea0663ab8 /src
parentvk_shader_decompiler: Silence warning when compiling without asserts (diff)
downloadyuzu-1e191cc837cf9ff38e5d5566919be54654d185b9.tar.gz
yuzu-1e191cc837cf9ff38e5d5566919be54654d185b9.tar.xz
yuzu-1e191cc837cf9ff38e5d5566919be54654d185b9.zip
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.txt1
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)
303 /we4457 # Declaration of 'identifier' hides function parameter 303 /we4457 # Declaration of 'identifier' hides function parameter
304 /we4458 # Declaration of 'identifier' hides class member 304 /we4458 # Declaration of 'identifier' hides class member
305 /we4459 # Declaration of 'identifier' hides global declaration 305 /we4459 # Declaration of 'identifier' hides global declaration
306 /we4715 # 'function' : not all control paths return a value
306 ) 307 )
307else() 308else()
308 target_compile_options(video_core PRIVATE 309 target_compile_options(video_core PRIVATE