Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58948 - trunk/boost
From: daniel_james_at_[hidden]
Date: 2010-01-12 13:51:40


Author: danieljames
Date: 2010-01-12 13:51:40 EST (Tue, 12 Jan 2010)
New Revision: 58948
URL: http://svn.boost.org/trac/boost/changeset/58948

Log:
Disable warnings when defining INT#_C macros for gcc.
Text files modified:
   trunk/boost/cstdint.hpp | 10 ++++++++++
   1 files changed, 10 insertions(+), 0 deletions(-)

Modified: trunk/boost/cstdint.hpp
==============================================================================
--- trunk/boost/cstdint.hpp (original)
+++ trunk/boost/cstdint.hpp 2010-01-12 13:51:40 EST (Tue, 12 Jan 2010)
@@ -390,6 +390,16 @@
 # define UINTMAX_C(value) value##ui64
 
 # else
+// For the following code we get several warnings along the lines of:
+//
+// boost/cstdint.hpp:428:35: error: use of C99 long long integer constant
+//
+// So we declare this a system header to suppress these warnings.
+
+#if defined(__GNUC__) && (__GNUC__ >= 4)
+#pragma GCC system_header
+#endif
+
 // do it the old fashioned way:
 
 // 8-bit types ------------------------------------------------------------//


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