Skip to content

Commit

Permalink
Enable -Werror compiler flag by default
Browse files Browse the repository at this point in the history
  • Loading branch information
timwoj committed Dec 15, 2023
1 parent 37283ab commit 1a97b2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SetDefaultCompileFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ if (MSVC)
endif ()

if ("${PROJECT_SOURCE_DIR}" STREQUAL "${CMAKE_SOURCE_DIR}")
set(EXTRA_COMPILE_FLAGS "-Wall -Wno-unused -funsigned-char")
set(EXTRA_COMPILE_FLAGS_CXX "-Wno-register -Werror=vla -funsigned-char")
set(EXTRA_COMPILE_FLAGS "-Wall -Wno-unused -funsigned-char -Werror")
set(EXTRA_COMPILE_FLAGS_CXX "-Wno-register -Werror=vla -funsigned-char -Werror")

if (NOT CMAKE_BUILD_TYPE)
if (ENABLE_DEBUG)
Expand Down

0 comments on commit 1a97b2c

Please sign in to comment.