diff --git a/include/boost/static_assert.hpp b/include/boost/static_assert.hpp index 8dfddae..ae547ad 100644 --- a/include/boost/static_assert.hpp +++ b/include/boost/static_assert.hpp @@ -67,7 +67,7 @@ // // If the compiler warns about unused typedefs then enable this: // -#if defined(__GNUC__) && (__GNUC__ >= 4) +#if (defined(__GNUC__) && (__GNUC__ >= 4)) || defined(__clang__) # define BOOST_STATIC_ASSERT_UNUSED_ATTRIBUTE __attribute__((unused)) #else # define BOOST_STATIC_ASSERT_UNUSED_ATTRIBUTE