Skip to content

Commit

Permalink
do not turn "switch" warnings into errors
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrauch committed Dec 31, 2024
1 parent 7cdbb30 commit 9d3c105
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ set(CMAKE_CXX_STANDARD 17)

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic -Werror)
add_compile_options(-Wno-error=switch)
add_link_options("-Wl,-z,relro,-z,now,-z,defs")
endif()

Expand Down

0 comments on commit 9d3c105

Please sign in to comment.