|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r65084 - sandbox/chrono/boost
From: vicente.botet_at_[hidden]
Date: 2010-08-28 10:54:48
Author: viboes
Date: 2010-08-28 10:54:37 EDT (Sat, 28 Aug 2010)
New Revision: 65084
URL: http://svn.boost.org/trac/boost/changeset/65084
Log:
toward warning free code
Text files modified:
sandbox/chrono/boost/ratio.hpp | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
Modified: sandbox/chrono/boost/ratio.hpp
==============================================================================
--- sandbox/chrono/boost/ratio.hpp (original)
+++ sandbox/chrono/boost/ratio.hpp 2010-08-28 10:54:37 EDT (Sat, 28 Aug 2010)
@@ -73,6 +73,18 @@
#define BOOST_INTMAX_C(a) a##LL
#endif
+//
+// We simply cannot include this header on gcc without getting copious warnings of the kind:
+//
+// boost/integer.hpp:77:30: warning: use of C99 long long integer constant
+//
+// And yet there is no other reasonable implementation, so we declare this a system header
+// to suppress these warnings.
+//
+#if defined(__GNUC__) && (__GNUC__ >= 4)
+#pragma GCC system_header
+#endif
+
namespace boost
{
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