Skip to content

Commit

Permalink
[ 168] Ignore -Wmissing-field-initializers in Boost Python header
Browse files Browse the repository at this point in the history
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
boostorg/python#418
  • Loading branch information
alanking committed Oct 12, 2023
1 parent 037eaa3 commit 20fa105
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/irods/private/re/python.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <boost/python.hpp>
#pragma GCC diagnostic pop
Expand Down

0 comments on commit 20fa105

Please sign in to comment.