File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ if(MSVC)
163163 # Debug Only: /Od /Zi /sdl /RTC1 /MDd
164164 set (INTERNAL_CXX_FLAGS /permissive- /W3 /Gm- /EHsc /FC /nologo /Zc:__cplusplus
165165 $<$<CONFIG:Release>:/O2 /Oi /Gy /GL /MD >
166- $<$<CONFIG:Debug>:/Ob0 /Od /Zi /sdl /RTC1 /MDd>)
166+ $<$<CONFIG:Debug>:/Ob0 /Od /Zi /sdl /WX / RTC1 /MDd>)
167167 #linker flags
168168 if ("${BITNESS} " STREQUAL "32" )
169169 set (machine "-MACHINE:X86" )
@@ -279,7 +279,7 @@ else()
279279 set (cxx_flags_unoptimized ${cxx_flags_unoptimized} ${stdlib_cxx} )
280280
281281 set (cxx_flags_unoptimized ${cxx_flags_unoptimized} ${stdlib_common} -fdiagnostics-show-option)
282- set (internal_compiler_warning_flags ${internal_compiler_warning_flags} -Werror - Wextra -Wreturn-type -Wunused -Wno-unused-variable -Wno-unused-parameter -Wno-missing-field-initializers)
282+ set (internal_compiler_warning_flags ${internal_compiler_warning_flags} -Wextra -Wreturn-type -Wunused -Wno-unused-variable -Wno-unused-parameter -Wno-missing-field-initializers)
283283
284284 CHECK_CXX_COMPILER_FLAG(-m${BITNESS} compiler_supports_machine_option)
285285 if (compiler_supports_machine_option)
@@ -358,7 +358,7 @@ else()
358358 set (debug_specific_linker_flags)
359359
360360 if ("${CMAKE_BUILD_TYPE} " STREQUAL "Debug" )
361- set (debug_specific_compile_flags ${debug_specific_compile_flags} -g)
361+ set (debug_specific_compile_flags ${debug_specific_compile_flags} -g -Werror )
362362
363363 set (debug_specific_linker_flags ${debug_specific_linker_flags} -O0)
364364
You can’t perform that action at this time.
0 commit comments