enable __attribute__((unused)) to avoid unused typedef warnings with all gcc-like variants starting with gcc 4.0. Avoids generating the warning with Clang among others.

This commit is contained in:
Mathias Gaunard
2014-09-29 14:55:39 +02:00
parent 41f9c4b99c
commit 15c38db1d2

View File

@ -67,7 +67,7 @@
//
// If the compiler warns about unused typedefs then enable this:
//
#if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 7)))
#if defined(__GNUC__) && (__GNUC__ >= 4)
# define BOOST_STATIC_ASSERT_UNUSED_ATTRIBUTE __attribute__((unused))
#else
# define BOOST_STATIC_ASSERT_UNUSED_ATTRIBUTE