Skip to content

Commit b1088e6

Browse files
authored
Merge pull request #982 from htm-community/remove-werror
Remove the -Werror flag.
2 parents f19bd21 + 874c89b commit b1088e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CommonCompilerConfig.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)