diff --git a/include/boost/intrusive/detail/workaround.hpp b/include/boost/intrusive/detail/workaround.hpp index 3c80830..f797b10 100644 --- a/include/boost/intrusive/detail/workaround.hpp +++ b/include/boost/intrusive/detail/workaround.hpp @@ -116,7 +116,7 @@ template struct static_assert_test {}; //GCC has some false positives with some functions returning references. //This silences this warning in selected functions #if defined(BOOST_GCC) && (BOOST_GCC >= 140000) -# define BOOST_INTRUSIVE_NO_DANGLING [[gnu::no_dangling]] +# define BOOST_INTRUSIVE_NO_DANGLING __attribute__((no_dangling)) #else # define BOOST_INTRUSIVE_NO_DANGLING #endif