Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57170 - trunk/boost
From: john_at_[hidden]
Date: 2009-10-27 05:58:41


Author: johnmaddock
Date: 2009-10-27 05:58:40 EDT (Tue, 27 Oct 2009)
New Revision: 57170
URL: http://svn.boost.org/trac/boost/changeset/57170

Log:
Suppress gcc warnings: for bug report #1451.
Text files modified:
   trunk/boost/integer_traits.hpp | 10 ++++++++++
   1 files changed, 10 insertions(+), 0 deletions(-)

Modified: trunk/boost/integer_traits.hpp
==============================================================================
--- trunk/boost/integer_traits.hpp (original)
+++ trunk/boost/integer_traits.hpp 2009-10-27 05:58:40 EDT (Tue, 27 Oct 2009)
@@ -158,6 +158,16 @@
 { };
 
 #if !defined(BOOST_NO_INTEGRAL_INT64_T) && !defined(BOOST_NO_INT64_T) && BOOST_HAS_XINT
+
+#if defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ > 3)))
+//
+// The following code emits warnings when built with -pedantic, and there appears
+// to be no other way of suppressing these warnings as use of __extension__ has no
+// effect, so declare the rest of this header a system header.
+//
+# pragma GCC system_header
+#endif
+
 template<>
 class integer_traits< detail::xint_t >
   : public std::numeric_limits< detail::xint_t >,


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