Skip to content

Commit 9f80d71

Browse files
committed
disabled -Wshadow GCC warnings in CMake for now
1 parent 3b08389 commit 9f80d71

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ endfunction()
2020

2121
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
2222
add_compile_options(-Wall -Wextra -pedantic -Wcast-qual -Wfloat-equal -Wmissing-declarations -Wmissing-format-attribute -Wredundant-decls -Wshadow -Wundef -Wold-style-cast -Wno-multichar)
23+
add_compile_options(-Wno-shadow) # TODO: fix these
2324
elseif (CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
2425
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
2526
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")

0 commit comments

Comments
 (0)