From f002698e0959d0b5bfbd7584dedbd634b4609040 Mon Sep 17 00:00:00 2001 From: Robert Schulze Date: Tue, 7 Feb 2023 17:16:59 +0000 Subject: [PATCH] More fine-granular warning relaxation --- base/poco/CMakeLists.txt | 3 --- base/poco/Crypto/CMakeLists.txt | 3 +++ base/poco/Data/CMakeLists.txt | 3 +++ base/poco/Foundation/CMakeLists.txt | 3 +++ base/poco/JSON/CMakeLists.txt | 3 +++ base/poco/MongoDB/CMakeLists.txt | 3 +++ base/poco/Net/CMakeLists.txt | 3 +++ base/poco/NetSSL_OpenSSL/CMakeLists.txt | 3 +++ base/poco/Redis/CMakeLists.txt | 3 +++ base/poco/Util/CMakeLists.txt | 3 +++ base/poco/XML/CMakeLists.txt | 3 +++ 11 files changed, 30 insertions(+), 3 deletions(-) diff --git a/base/poco/CMakeLists.txt b/base/poco/CMakeLists.txt index 0432ce196bf..82c48b5b622 100644 --- a/base/poco/CMakeLists.txt +++ b/base/poco/CMakeLists.txt @@ -1,6 +1,3 @@ -set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w") -set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w") - add_subdirectory (Crypto) add_subdirectory (Data) add_subdirectory (Data/ODBC) diff --git a/base/poco/Crypto/CMakeLists.txt b/base/poco/Crypto/CMakeLists.txt index 3753c5eed7b..205b1200054 100644 --- a/base/poco/Crypto/CMakeLists.txt +++ b/base/poco/Crypto/CMakeLists.txt @@ -1,3 +1,6 @@ +set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w") +set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w") + if (ENABLE_SSL) file (GLOB SRCS src/*.cpp) diff --git a/base/poco/Data/CMakeLists.txt b/base/poco/Data/CMakeLists.txt index 142d3592b69..d3c7e5fe772 100644 --- a/base/poco/Data/CMakeLists.txt +++ b/base/poco/Data/CMakeLists.txt @@ -1,3 +1,6 @@ +set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w") +set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w") + file (GLOB SRCS src/*.cpp) add_library (_poco_data ${SRCS}) diff --git a/base/poco/Foundation/CMakeLists.txt b/base/poco/Foundation/CMakeLists.txt index 3e7c7ae3e3e..340a8e99965 100644 --- a/base/poco/Foundation/CMakeLists.txt +++ b/base/poco/Foundation/CMakeLists.txt @@ -1,5 +1,8 @@ # Foundation (pcre) +set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w") +set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w") + file (GLOB SRCS_PCRE src/pcre_*.c) add_library (_poco_foundation_pcre ${SRCS_PCRE}) diff --git a/base/poco/JSON/CMakeLists.txt b/base/poco/JSON/CMakeLists.txt index 96fa00d098d..af04982817d 100644 --- a/base/poco/JSON/CMakeLists.txt +++ b/base/poco/JSON/CMakeLists.txt @@ -1,3 +1,6 @@ +set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w") +set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w") + # Poco::JSON (pdjson) set (SRCS_PDJSON diff --git a/base/poco/MongoDB/CMakeLists.txt b/base/poco/MongoDB/CMakeLists.txt index 92589fe438f..64798d65d6f 100644 --- a/base/poco/MongoDB/CMakeLists.txt +++ b/base/poco/MongoDB/CMakeLists.txt @@ -1,3 +1,6 @@ +set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w") +set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w") + file (GLOB SRCS src/*.cpp) add_library (_poco_mongodb ${SRCS}) diff --git a/base/poco/Net/CMakeLists.txt b/base/poco/Net/CMakeLists.txt index da58f20e07b..9f35ca5543b 100644 --- a/base/poco/Net/CMakeLists.txt +++ b/base/poco/Net/CMakeLists.txt @@ -1,3 +1,6 @@ +set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w") +set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w") + file (GLOB SRCS src/*.cpp) add_library (_poco_net ${SRCS}) diff --git a/base/poco/NetSSL_OpenSSL/CMakeLists.txt b/base/poco/NetSSL_OpenSSL/CMakeLists.txt index 9ec5acaab02..70b57331ee7 100644 --- a/base/poco/NetSSL_OpenSSL/CMakeLists.txt +++ b/base/poco/NetSSL_OpenSSL/CMakeLists.txt @@ -1,3 +1,6 @@ +set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w") +set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w") + if (ENABLE_SSL) file (GLOB SRCS src/*.cpp) diff --git a/base/poco/Redis/CMakeLists.txt b/base/poco/Redis/CMakeLists.txt index 562957140ba..c91d5e878b3 100644 --- a/base/poco/Redis/CMakeLists.txt +++ b/base/poco/Redis/CMakeLists.txt @@ -1,3 +1,6 @@ +set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w") +set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w") + file (GLOB SRCS src/*.cpp) add_library (_poco_redis ${SRCS}) diff --git a/base/poco/Util/CMakeLists.txt b/base/poco/Util/CMakeLists.txt index f37e099e648..65e4ca6e879 100644 --- a/base/poco/Util/CMakeLists.txt +++ b/base/poco/Util/CMakeLists.txt @@ -1,3 +1,6 @@ +set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w") +set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w") + file (GLOB SRCS src/*.cpp) add_library (_poco_util ${SRCS}) diff --git a/base/poco/XML/CMakeLists.txt b/base/poco/XML/CMakeLists.txt index 992cfbe763c..e82f85d138e 100644 --- a/base/poco/XML/CMakeLists.txt +++ b/base/poco/XML/CMakeLists.txt @@ -1,3 +1,6 @@ +set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w") +set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w") + # Poco::XML (expat) file (GLOB SRCS_EXPAT src/xml*.c)