From 20fa105cddf494c2917323f753ccbf837b75da32 Mon Sep 17 00:00:00 2001 From: Alan King Date: Thu, 12 Oct 2023 11:29:41 -0400 Subject: [PATCH] [ 168] Ignore -Wmissing-field-initializers in Boost Python header This warning is raised by a Boost Python header file when newer versions of Python are used with Boost 1.81. Since there isn't much we can do about that, we ignore the warning for that header. For more information, see https://github.com/boostorg/python/issues/418 --- include/irods/private/re/python.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/irods/private/re/python.hpp b/include/irods/private/re/python.hpp index ab6aa69..fcc84c7 100644 --- a/include/irods/private/re/python.hpp +++ b/include/irods/private/re/python.hpp @@ -21,6 +21,11 @@ #endif #if BOOST_VERSION < 108100 # pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#elif BOOST_VERSION == 108100 +// Newer versions of Python have new members in some types which have not yet been added to the Boost Python +// implementation. Ignore -Wmissing-field-initializers until this has been resolved. +// See https://github.com/boostorg/python/issues/418 +# pragma GCC diagnostic ignored "-Wmissing-field-initializers" #endif #include #pragma GCC diagnostic pop