Guard attribute names with double underscores.

This commit is contained in:
morinmorin
2015-09-03 19:02:48 +09:00
parent e14893a9fc
commit 2656ae42d4
2 changed files with 2 additions and 2 deletions

View File

@ -261,7 +261,7 @@
#endif
// Clang has supported the 'unused' attribute since the first release.
#define BOOST_ATTRIBUTE_UNUSED __attribute__((unused))
#define BOOST_ATTRIBUTE_UNUSED __attribute__((__unused__))
#ifndef BOOST_COMPILER
# define BOOST_COMPILER "Clang version " __clang_version__

View File

@ -276,7 +276,7 @@
//
// Unused attribute:
#if __GNUC__ >= 4
# define BOOST_ATTRIBUTE_UNUSED __attribute__((unused))
# define BOOST_ATTRIBUTE_UNUSED __attribute__((__unused__))
#endif
#ifndef BOOST_COMPILER