Skip to content

Commit cec6a2a

Browse files
committed
[#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 boostorg/python#418
1 parent 6b536a2 commit cec6a2a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

include/irods/private/re/python.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
#endif
2222
#if BOOST_VERSION < 108100
2323
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
24+
#elif BOOST_VERSION == 108100
25+
// Newer versions of Python have new members in some types which have not yet been added to the Boost Python
26+
// implementation. Ignore -Wmissing-field-initializers until this has been resolved.
27+
// See https://github.com/boostorg/python/issues/418
28+
# pragma GCC diagnostic ignored "-Wmissing-field-initializers"
2429
#endif
2530
#include <boost/python.hpp>
2631
#pragma GCC diagnostic pop

0 commit comments

Comments
 (0)