diff --git a/Control/CxxUtils/test/ConcurrentBitset_test.cxx b/Control/CxxUtils/test/ConcurrentBitset_test.cxx index 93c57415807219bc2e42fe7f026b10c31fb07da8..c305ee051234ef8c3054502872f48e52784ed3fb 100644 --- a/Control/CxxUtils/test/ConcurrentBitset_test.cxx +++ b/Control/CxxUtils/test/ConcurrentBitset_test.cxx @@ -15,7 +15,16 @@ #include "CxxUtils/ConcurrentBitset.h" #include "CxxUtils/checker_macros.h" #include "TestTools/random.h" +// Work around a warning in tbb, found by gcc8. +// Fixed in TBB 2018 U5. +#if defined(__GNUC__) && __GNUC__ >= 8 +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wclass-memaccess" +#endif #include "tbb/concurrent_unordered_set.h" +#if defined(__GNUC__) && __GNUC__ >= 8 +# pragma GCC diagnostic pop +#endif #include "boost/timer/timer.hpp" #ifdef HAVE_CK extern "C" {