|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r84470 - trunk/boost/concept/detail
From: jewillco_at_[hidden]
Date: 2013-05-24 22:11:20
Author: jewillco
Date: 2013-05-24 22:11:20 EDT (Fri, 24 May 2013)
New Revision: 84470
URL: http://svn.boost.org/trac/boost/changeset/84470
Log:
Added unused attribute for new versions of GCC
Text files modified:
trunk/boost/concept/detail/general.hpp | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
Modified: trunk/boost/concept/detail/general.hpp
==============================================================================
--- trunk/boost/concept/detail/general.hpp (original)
+++ trunk/boost/concept/detail/general.hpp 2013-05-24 22:11:20 EDT (Fri, 24 May 2013)
@@ -65,10 +65,19 @@
# endif
+// Version check from https://svn.boost.org/trac/boost/changeset/82886
+// (boost/static_assert.hpp)
+#if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 7)))
+#define BOOST_CONCEPT_UNUSED_TYPEDEF __attribute__((unused))
+#else
+#define BOOST_CONCEPT_UNUSED_TYPEDEF /**/
+#endif
+
# define BOOST_CONCEPT_ASSERT_FN( ModelFnPtr ) \
typedef ::boost::concepts::detail::instantiate< \
&::boost::concepts::requirement_<ModelFnPtr>::failed> \
- BOOST_PP_CAT(boost_concept_check,__LINE__)
+ BOOST_PP_CAT(boost_concept_check,__LINE__) \
+ BOOST_CONCEPT_UNUSED_TYPEDEF
}}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk