diff --git a/CMakeLists.txt b/CMakeLists.txt index 2283598e..2ac95335 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,7 +50,7 @@ else() if(MORE_WARNINGS) add_compile_options(-Werror -Wextra -Walloc-zero -Wcast-align -Wcast-qual -Wduplicated-branches -Wduplicated-cond - -Wfloat-equal -Winline -Wlogical-op -Wnested-externs -Wnull-dereference + -Wfloat-equal -Wlogical-op -Wnested-externs -Wnull-dereference -Wold-style-definition -Wshift-overflow=2 -Wstrict-overflow=5 -Wstrict-prototypes -Wstringop-overflow=4 -Wundef -Wuninitialized -Wunused -Wshadow # TODO: -Wshadow=compatible-local ? diff --git a/Makefile b/Makefile index 0ab4dcd9..24f756f7 100644 --- a/Makefile +++ b/Makefile @@ -214,7 +214,7 @@ checkdiff: develop: $Qenv ${MAKE} WARNFLAGS="-Werror -Wextra \ -Walloc-zero -Wcast-align -Wcast-qual -Wduplicated-branches -Wduplicated-cond \ - -Wfloat-equal -Winline -Wlogical-op -Wnested-externs -Wold-style-definition \ + -Wfloat-equal -Wlogical-op -Wnested-externs -Wold-style-definition \ -Wshift-overflow=2 \ -Wstrict-overflow=5 -Wstrict-prototypes -Wundef -Wuninitialized -Wunused \ -Wshadow \