Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85094 - trunk/boost/log/detail
From: andrey.semashev_at_[hidden]
Date: 2013-07-20 15:38:36


Author: andysem
Date: 2013-07-20 15:38:36 EDT (Sat, 20 Jul 2013)
New Revision: 85094
URL: http://svn.boost.org/trac/boost/changeset/85094

Log:
Disabled some bogus gcc warnings.

Text files modified:
   trunk/boost/log/detail/footer.hpp | 6 ++++++
   trunk/boost/log/detail/header.hpp | 17 +++++++++++++++++
   2 files changed, 23 insertions(+), 0 deletions(-)

Modified: trunk/boost/log/detail/footer.hpp
==============================================================================
--- trunk/boost/log/detail/footer.hpp Sat Jul 20 14:09:32 2013 (r85093)
+++ trunk/boost/log/detail/footer.hpp 2013-07-20 15:38:36 EDT (Sat, 20 Jul 2013) (r85094)
@@ -8,7 +8,13 @@
 #if !defined(BOOST_LOG_ENABLE_WARNINGS)
 
 #if defined(_MSC_VER)
+
 #pragma warning(pop)
+
+#elif defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 406
+
+#pragma GCC diagnostic pop
+
 #endif
 
 #endif // !defined(BOOST_LOG_ENABLE_WARNINGS)

Modified: trunk/boost/log/detail/header.hpp
==============================================================================
--- trunk/boost/log/detail/header.hpp Sat Jul 20 14:09:32 2013 (r85093)
+++ trunk/boost/log/detail/header.hpp 2013-07-20 15:38:36 EDT (Sat, 20 Jul 2013) (r85094)
@@ -10,6 +10,7 @@
 #if !defined(BOOST_LOG_ENABLE_WARNINGS)
 
 #if defined(_MSC_VER)
+
 #pragma warning(push, 3)
 // 'm_A' : class 'A' needs to have dll-interface to be used by clients of class 'B'
 #pragma warning(disable: 4251)
@@ -35,6 +36,22 @@
 #pragma warning(disable: 4610)
 // function marked as __forceinline not inlined
 #pragma warning(disable: 4714)
+
+#elif defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 406
+
+#pragma GCC diagnostic push
+// 'var' defined but not used
+#pragma GCC diagnostic ignored "-Wunused-variable"
+// unused parameter 'arg'
+#pragma GCC diagnostic ignored "-Wunused-parameter"
+// missing initializer for member var
+#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
+
+#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407
+// typedef ‘foo’ locally defined but not used
+#pragma GCC diagnostic ignored "-Wunused-local-typedefs"
+#endif
+
 #endif
 
 #endif // !defined(BOOST_LOG_ENABLE_WARNINGS)


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