From cdcb3fc1aa910bd68807e17e183df07530722c85 Mon Sep 17 00:00:00 2001 From: morinmorin Date: Thu, 3 Sep 2015 18:32:02 +0900 Subject: [PATCH] Remove the detection code for 'unused' attribute on Clang. --- include/boost/config/compiler/clang.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/boost/config/compiler/clang.hpp b/include/boost/config/compiler/clang.hpp index c78edb24..90f747c0 100644 --- a/include/boost/config/compiler/clang.hpp +++ b/include/boost/config/compiler/clang.hpp @@ -260,9 +260,8 @@ # define BOOST_NO_CXX14_DIGIT_SEPARATORS #endif -#if __has_attribute(unused) -# define BOOST_ATTRIBUTE_UNUSED __attribute__((unused)) -#endif +// Clang has supported the 'unused' attribute since the first release. +#define BOOST_ATTRIBUTE_UNUSED __attribute__((unused)) #ifndef BOOST_COMPILER # define BOOST_COMPILER "Clang version " __clang_version__