Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

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

ReinUsesLisp5e3be575ad6e
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index 01f3e94197..893df433a8 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -635,6 +635,8 @@ if (MSVC)
/we4267
# 'context' : truncation from 'type1' to 'type2'
/we4305
+ # 'function' : not all control paths return a value
+ /we4715
)
else()
target_compile_options(core PRIVATE