diff --git a/test/segment_manager_test.hpp b/test/segment_manager_test.hpp index 87713af..e2a1d4f 100644 --- a/test/segment_manager_test.hpp +++ b/test/segment_manager_test.hpp @@ -34,6 +34,13 @@ using namespace boost::interprocess; template struct IntLike; +//Old GCC versions emit incorrect warnings like +//"requested alignment 256 is larger than 128" +#if defined(BOOST_GCC) && (BOOST_GCC <= 100000) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wattributes" +#endif + #define BOOST_INTERPROCESS_ALIGNED_INTLIKE(A)\ template<>\ struct IntLike\ @@ -57,6 +64,10 @@ BOOST_INTERPROCESS_ALIGNED_INTLIKE(256) #undef BOOST_INTERPROCESS_ALIGNED_INTLIKE +#if defined(BOOST_GCC) && (BOOST_GCC <= 100000) +#pragma GCC diagnostic pop +#endif + template struct atomic_func_test {