diff --git a/Makefile b/Makefile index 9d9cc563f279..25cfd336dad3 100644 --- a/Makefile +++ b/Makefile @@ -137,7 +137,7 @@ ifeq (clang++, $(findstring clang++,$(CXX))) CPPCHK_GLIBCXX_DEBUG= endif ifndef CXXFLAGS - CXXFLAGS=-pedantic -Wall -Wextra -Wcast-qual -Wfloat-equal -Wmissing-declarations -Wmissing-format-attribute -Wno-long-long -Wpacked -Wredundant-decls -Wundef -Wno-shadow -Wno-missing-field-initializers -Wno-missing-braces -Wno-sign-compare -Wno-multichar -Woverloaded-virtual $(CPPCHK_GLIBCXX_DEBUG) -g + CXXFLAGS=-pedantic -Wall -Wextra -Wcast-qual -Wfloat-equal -Wmissing-declarations -Wmissing-format-attribute -Wno-long-long -Wpacked -Wredundant-decls -Wundef -Wno-sign-compare -Wno-multichar -Woverloaded-virtual $(CPPCHK_GLIBCXX_DEBUG) -g endif ifeq (g++, $(findstring g++,$(CXX))) diff --git a/cmake/compileroptions.cmake b/cmake/compileroptions.cmake index 38df5d106dd9..6344fbf91472 100644 --- a/cmake/compileroptions.cmake +++ b/cmake/compileroptions.cmake @@ -39,8 +39,6 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang add_compile_options(-Wpacked) # add_compile_options(-Wredundant-decls) # if anything is declared more than once in the same scope add_compile_options(-Wundef) - add_compile_options(-Wno-missing-field-initializers) - add_compile_options(-Wno-missing-braces) add_compile_options(-Wno-sign-compare) add_compile_options(-Wno-multichar) add_compile_options(-Woverloaded-virtual) # when a function declaration hides virtual functions from a base class @@ -57,9 +55,7 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") # use pipes instead of temporary files - greatly reduces I/O usage add_compile_options(-pipe) - add_compile_options(-Wno-maybe-uninitialized) # there are some false positives add_compile_options(-Wsuggest-attribute=noreturn) - add_compile_options(-Wno-shadow) # whenever a local variable or type declaration shadows another one elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") if (CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 14 OR CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 14) # TODO: verify this regression still exists in clang-15 @@ -81,7 +77,7 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang") endif() # TODO: fix and enable these warnings - or move to suppression list below - add_compile_options_safe(-Wno-documentation-unknown-command) # TODO: Clang currently does not support all commands + add_compile_options_safe(-Wno-documentation-unknown-command) # TODO: Clang currently does not support all commands add_compile_options_safe(-Wno-inconsistent-missing-destructor-override) # caused by Qt moc code add_compile_options_safe(-Wno-unused-exception-parameter) add_compile_options_safe(-Wno-old-style-cast) diff --git a/tools/dmake.cpp b/tools/dmake.cpp index c9b47989e24f..c48fd8cf6488 100644 --- a/tools/dmake.cpp +++ b/tools/dmake.cpp @@ -603,9 +603,6 @@ int main(int argc, char **argv) "-Wpacked " "-Wredundant-decls " "-Wundef " - "-Wno-shadow " - "-Wno-missing-field-initializers " - "-Wno-missing-braces " "-Wno-sign-compare " "-Wno-multichar " "-Woverloaded-virtual "