|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r65146 - trunk/boost/config
From: john_at_[hidden]
Date: 2010-08-31 08:19:54
Author: johnmaddock
Date: 2010-08-31 08:19:53 EDT (Tue, 31 Aug 2010)
New Revision: 65146
URL: http://svn.boost.org/trac/boost/changeset/65146
Log:
Suppress GCC warnings from this header when compiled with -pedantic and certain GCC-4.x versions (probably 4.5.0 specific).
Text files modified:
trunk/boost/config/suffix.hpp | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
Modified: trunk/boost/config/suffix.hpp
==============================================================================
--- trunk/boost/config/suffix.hpp (original)
+++ trunk/boost/config/suffix.hpp 2010-08-31 08:19:53 EDT (Tue, 31 Aug 2010)
@@ -25,6 +25,14 @@
#ifndef BOOST_CONFIG_SUFFIX_HPP
#define BOOST_CONFIG_SUFFIX_HPP
+#if defined(__GNUC__) && (__GNUC__ >= 4)
+//
+// Some GCC-4.x versions issue warnings even when __extension__ is used,
+// so use this as a workaround:
+//
+#pragma GCC system_header
+#endif
+
//
// ensure that visibility macros are always defined, thus symplifying use
//
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