]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3451] Use more gcc pragmas to ignore external warnings
authorAndrei Pavel <andrei@isc.org>
Tue, 21 Oct 2025 12:39:30 +0000 (15:39 +0300)
committerAndrei Pavel <andrei@isc.org>
Sun, 26 Oct 2025 16:58:23 +0000 (18:58 +0200)
12 files changed:
src/bin/netconf/netconf.h
src/lib/asiolink/asio_wrapper.h
src/lib/asiolink/botan_tls.h
src/lib/asiolink/botan_wrapper.h
src/lib/asiolink/interval_timer.h
src/lib/asiolink/io_address.h
src/lib/asiolink/io_service.h
src/lib/asiolink/testutils/botan_sample_client.cc
src/lib/asiolink/testutils/botan_sample_server.cc
src/lib/http/date_time.cc
src/lib/yang/pretests/sysrepo_setup_tests.cc
src/lib/yang/translator.h

index 57510d045bdbb01016349709905d9a093887ded5..56eb5db6c90c155f3ff8c8cac0fdce066e856d77 100644 (file)
 
 #include <map>
 
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-literal-operator"
+#endif
 // #include <sysrepo-cpp/Changes.hpp>  // Will be required on newer sysrepo-cpp
 #include <sysrepo-cpp/Session.hpp>
 // #include <sysrepo-cpp/Subscription.hpp>  // Will be required on newer sysrepo-cpp
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
 
 namespace isc {
 namespace netconf {
index b00967524ced6ecd7b4a95bc7ab6e1d6de33ff7c..d28c251d312ce9120a97c2fb41566d90c336bf48 100644 (file)
@@ -73,6 +73,7 @@
 
 #ifdef __GNUC__
 #pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Woverloaded-virtual"
 #pragma GCC diagnostic ignored "-Wshadow"
 #if (((GNU_CC_VERSION >= 50200) && (GNU_CC_VERSION < 60000))    \
      && defined(BOOST_ERROR_CODE_HEADER_ONLY))
index b7c0b519f0500a75bab2a2f03359ff97b515e893..23a5cda8cd00c24bc6fa60a11471f0f9a30266a7 100644 (file)
@@ -20,7 +20,6 @@
 #include <exceptions/exceptions.h>
 
 #include <asiolink/botan_wrapper.h>
-#include <botan/asio_stream.h>
 
 namespace isc {
 namespace asiolink {
index 91c130dcdef65fc24d969ae4771f43a5928ac7bb..8464642422866d803bbaf6102120a57f39774cb5 100644 (file)
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
 #endif
 
+#ifdef __GNUC__
+#pragma GCC diagnostic ignored "-Woverloaded-virtual"
+#pragma GCC diagnostic ignored "-Wshadow"
+#endif
+
 /// MariaDB defines PROTOCOL_VERSION which is also in a Botan enum...
 
 #ifdef PROTOCOL_VERSION
@@ -29,6 +34,7 @@
 #endif
 
 #include <boost/beast/core/error.hpp>
+#include <botan/asio_stream.h>
 
 #ifdef BOTAN_BACKUP_FOR_PROTOCOL_VERSION
 #define PROTOCOL_VERSION BOTAN_BACKUP_FOR_PROTOCOL_VERSION
index e7ba4c11a4a96bf0a8721edefa3ef22fd3d6d41b..d340481e941469081b51d5f11dd4c180b8bb17a2 100644 (file)
@@ -7,7 +7,15 @@
 #ifndef ASIOLINK_INTERVAL_TIMER_H
 #define ASIOLINK_INTERVAL_TIMER_H 1
 
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Woverloaded-virtual"
+#endif
 #include <boost/asio/deadline_timer.hpp>
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
+
 #include <boost/shared_ptr.hpp>
 #include <functional>
 
index 3544ebe125cd055d34e9c667f595c209acec2cb2..8767b0db06d39419a0c6546f2adc992e6db07d92 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2010-2024 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2010-2025 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
 // See the description of the namespace below.
 #include <unistd.h>             // for some network system calls
 #include <stdint.h>             // for uint32_t
+
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Woverloaded-virtual"
+#endif
 #include <boost/asio/ip/address.hpp>
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
 
 #include <functional>
 #include <string>
index 302ac400fd5d7a5c7cf30762075c96df4a001d4e..5d4327fba62c0199a974eb67b6b4c449dcb22ed8 100644 (file)
 #error "Boost ASIO older than 1.66 are not supported"
 #endif
 
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Woverloaded-virtual"
+#endif
 #include <boost/asio/io_context.hpp>
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
 
 namespace isc {
 namespace asiolink {
index 56163bedb29d83cb50fcbe833ae84d8201e36784..128e1fd700f19090d7e07f670526bcadd224b3eb 100644 (file)
@@ -17,7 +17,6 @@
 
 #include <asiolink/asio_wrapper.h>
 #include <asiolink/botan_wrapper.h>
-#include <botan/asio_stream.h>
 #include <botan/certstor_flatfile.h>
 #include <botan/pkcs8.h>
 #include <botan/auto_rng.h>
index a2122cf30056002a355c0b704d43016ee0e1129c..88b889278004c7f1f4ef315ff364c6e9d5e182b9 100644 (file)
@@ -16,7 +16,6 @@
 
 #include <asiolink/asio_wrapper.h>
 #include <asiolink/botan_wrapper.h>
-#include <botan/asio_stream.h>
 #include <botan/certstor_flatfile.h>
 #include <botan/pkcs8.h>
 #include <botan/auto_rng.h>
index cd7824a5bdb2cee35077267d9960a2a1fc418f0e..4dc68a03c0def0def1441eec4db82642f88b7866 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2016-2019 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2016-2025 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -7,11 +7,20 @@
 #include <config.h>
 
 #include <http/date_time.h>
-#include <boost/date_time/time_facet.hpp>
-#include <boost/date_time/local_time/local_time.hpp>
+
 #include <locale>
 #include <sstream>
 
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-copy"
+#endif
+#include <boost/date_time/local_time/local_time.hpp>
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
+#include <boost/date_time/time_facet.hpp>
+
 using namespace boost::local_time;
 using namespace boost::posix_time;
 
index 7e18f1170ad1fc46c528a7a5116f80535366ce88..a1432be37d9df6b1cb401ed3725d28bde5e9ed30 100644 (file)
@@ -6,11 +6,9 @@
 
 #include <config.h>
 
+#include <yang/translator.h>
 #include <yang/yang_revisions.h>
 
-#include <sysrepo-cpp/Connection.hpp>
-#include <sysrepo-cpp/Session.hpp>
-
 #include <iostream>
 #include <unordered_map>
 #include <sstream>
index 0adffebf0b4f00b76d5f65286b7d7ed02ebba33b..8bd22112d9ce86b23d12ffa54b8db13d763a469e 100644 (file)
 #include <cc/data.h>
 #include <yang/netconf_error.h>
 
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-literal-operator"
+#endif
 #include <sysrepo-cpp/Connection.hpp>
 #include <sysrepo-cpp/Enum.hpp>
 #include <sysrepo-cpp/Session.hpp>
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
 
 #include <unordered_map>