1 parent 3829138 commit e2c327cCopy full SHA for e2c327c
1 file changed
CMakeLists.txt
@@ -186,6 +186,11 @@ if(MSVC)
186
# /wd4068 (like -Wno-unknown-pragmas): ignore unknown `#pragma` directives
187
add_compile_options(/wd4244 /wd4068)
188
189
+ # Some warnings which should always be fatal:
190
+ #
191
+ # /we4715: 'function': not all control paths return a value
192
+ add_compile_options(/we4715)
193
+
194
if(NOT CMAKE_BUILD_TYPE STREQUAL "Release")
195
# Enable Security Development Lifecycle checks, which "change security-relevant
196
# warnings into errors, and set additional secure code-generation features"
0 commit comments