diff --git a/CMakeLists.txt b/CMakeLists.txt index aa1cdc4..3c92eb6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,7 +21,7 @@ endif() if(CMAKE_C_COMPILER_ID MATCHES "GNU|Clang|AppleClang") add_compile_options(-ffast-math -fomit-frame-pointer - -W -Wall -Waggregate-return -Wcast-align -Wcast-qual -Wshadow -Wwrite-strings + -W -Wall -Wcast-align -Wcast-qual -Wshadow -Wwrite-strings "$<$:-Wstrict-prototypes;-Wmissing-prototypes;-Wnested-externs;-Wbad-function-cast>") endif() diff --git a/test/Makefile b/test/Makefile index e4ef001..5b1f219 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,5 +1,5 @@ -WARNINGS=-W -Wall -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return \ +WARNINGS=-W -Wall -Wstrict-prototypes -Wmissing-prototypes \ -Wcast-align -Wcast-qual -Wnested-externs -Wshadow -Wbad-function-cast \ -Wwrite-strings diff --git a/tools/Makefile b/tools/Makefile index ae7646b..f490533 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -1,4 +1,4 @@ -WARNINGS=-W -Wall -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return \ +WARNINGS=-W -Wall -Wstrict-prototypes -Wmissing-prototypes \ -Wcast-align -Wcast-qual -Wnested-externs -Wshadow -Wbad-function-cast \ -Wwrite-strings