From e321f7a4d7e34335f87e6fe7a144b81904044f62 Mon Sep 17 00:00:00 2001 From: Mark Borgerding Date: Sat, 23 Jan 2021 11:52:15 -0500 Subject: [PATCH] dropped -Waggregate-return from warning flags as it created spurious warnings for recent c++ compilation (found through cmake build on CentOS 8) --- CMakeLists.txt | 2 +- test/Makefile | 2 +- tools/Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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