diff --git a/CMakeLists.txt b/CMakeLists.txt index 6117e1bc5..9d387039c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -547,12 +547,6 @@ if (MSVC) else () # HACK : because these need to come first, before any warning demotion string (APPEND CMAKE_CXX_FLAGS " -Wall -Wdeprecated") - if (is_clang OR (is_gcc AND NOT unity)) - # gcc flags many more instances with `-Wshadow` than clang. Many incouous - # shadowings are flagged in unity mode. Only turn on gcc warnings in nonunity - # builds - string (APPEND CMAKE_CXX_FLAGS " -Wshadow") - endif() # not MSVC target_compile_options (common INTERFACE