Skip to content

Commit

Permalink
Disable -Wmissing-field-initializers for GCC 13+ as appropriate
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Aug 23, 2024
1 parent a974565 commit cfb1346
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/test_time_generator_v1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@
#include <boost/uuid/time_generator_v1.hpp>
#include <boost/uuid/uuid_clock.hpp>
#include <boost/core/lightweight_test.hpp>
#include <boost/config.hpp>
#include <chrono>
#include <set>

#if defined(BOOST_LIBSTDCXX_VERSION) && BOOST_LIBSTDCXX_VERSION >= 130000
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114865
# pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#endif

using namespace boost::uuids;

uuid generate_and_test( time_generator_v1& gen )
Expand Down
6 changes: 6 additions & 0 deletions test/test_time_generator_v1_2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@
#include <boost/uuid/time_generator_v1.hpp>
#include <boost/uuid/uuid_clock.hpp>
#include <boost/core/lightweight_test.hpp>
#include <boost/config.hpp>
#include <chrono>
#include <atomic>
#include <set>

#if defined(BOOST_LIBSTDCXX_VERSION) && BOOST_LIBSTDCXX_VERSION >= 130000
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114865
# pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#endif

using namespace boost::uuids;

uuid generate_and_test( time_generator_v1& gen )
Expand Down
6 changes: 6 additions & 0 deletions test/test_time_generator_v1_3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,18 @@
#include <boost/uuid/time_generator_v1.hpp>
#include <boost/uuid/uuid_clock.hpp>
#include <boost/core/lightweight_test.hpp>
#include <boost/config.hpp>
#include <atomic>
#include <chrono>
#include <thread>
#include <set>
#include <vector>

#if defined(BOOST_LIBSTDCXX_VERSION) && BOOST_LIBSTDCXX_VERSION >= 130000
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114865
# pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#endif

using namespace boost::uuids;

uuid::node_type const node{{ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06 }};
Expand Down
6 changes: 6 additions & 0 deletions test/test_time_generator_v6.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@
#include <boost/uuid/time_generator_v6.hpp>
#include <boost/uuid/uuid_clock.hpp>
#include <boost/core/lightweight_test.hpp>
#include <boost/config.hpp>
#include <chrono>
#include <set>

#if defined(BOOST_LIBSTDCXX_VERSION) && BOOST_LIBSTDCXX_VERSION >= 130000
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114865
# pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#endif

using namespace boost::uuids;

uuid generate_and_test( time_generator_v6& gen )
Expand Down
6 changes: 6 additions & 0 deletions test/test_time_generator_v6_2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@
#include <boost/uuid/time_generator_v6.hpp>
#include <boost/uuid/uuid_clock.hpp>
#include <boost/core/lightweight_test.hpp>
#include <boost/config.hpp>
#include <chrono>
#include <atomic>
#include <set>

#if defined(BOOST_LIBSTDCXX_VERSION) && BOOST_LIBSTDCXX_VERSION >= 130000
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114865
# pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#endif

using namespace boost::uuids;

uuid generate_and_test( time_generator_v6& gen )
Expand Down
6 changes: 6 additions & 0 deletions test/test_time_generator_v6_3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,18 @@
#include <boost/uuid/time_generator_v6.hpp>
#include <boost/uuid/uuid_clock.hpp>
#include <boost/core/lightweight_test.hpp>
#include <boost/config.hpp>
#include <atomic>
#include <chrono>
#include <thread>
#include <set>
#include <vector>

#if defined(BOOST_LIBSTDCXX_VERSION) && BOOST_LIBSTDCXX_VERSION >= 130000
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114865
# pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#endif

using namespace boost::uuids;

uuid::node_type const node{{ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06 }};
Expand Down

0 comments on commit cfb1346

Please sign in to comment.