2014-04-30 08:09:57 -05:00
|
|
|
From d28b2bc733d85b0bb194f395375f2a460b9be00d Mon Sep 17 00:00:00 2001
|
|
|
|
From: Michael Stahl <mstahl@redhat.com>
|
|
|
|
Date: Wed, 30 Apr 2014 12:27:55 +0200
|
|
|
|
Subject: [PATCH] multi_array: suppress GCC -Wshadow warnings (fixes: #9886)
|
|
|
|
|
|
|
|
---
|
|
|
|
include/boost/multi_array.hpp | 9 +++++++++
|
|
|
|
1 file changed, 9 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/include/boost/multi_array.hpp b/include/boost/multi_array.hpp
|
|
|
|
index 8193699..72b2294 100644
|
|
|
|
--- a/include/boost/multi_array.hpp
|
|
|
|
+++ b/include/boost/multi_array.hpp
|
2014-05-03 14:29:10 -05:00
|
|
|
@@ -18,6 +18,16 @@
|
2014-04-30 08:09:57 -05:00
|
|
|
// declaration and definition
|
|
|
|
//
|
|
|
|
|
|
|
|
+#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 406)
|
|
|
|
+# pragma GCC diagnostic push
|
|
|
|
+# pragma GCC diagnostic ignored "-Wshadow"
|
|
|
|
+#endif
|
2014-05-03 14:29:10 -05:00
|
|
|
+
|
|
|
|
+#if defined(__clang__)
|
|
|
|
+# pragma clang diagnostic push
|
|
|
|
+# pragma clang diagnostic ignored "-Wshadow"
|
|
|
|
+#endif
|
2014-04-30 08:09:57 -05:00
|
|
|
+
|
|
|
|
#include "boost/multi_array/base.hpp"
|
|
|
|
#include "boost/multi_array/collection_concept.hpp"
|
|
|
|
#include "boost/multi_array/copy_array.hpp"
|
2014-05-03 14:29:10 -05:00
|
|
|
@@ -496,4 +501,12 @@ private:
|
2014-04-30 08:09:57 -05:00
|
|
|
|
|
|
|
} // namespace boost
|
|
|
|
|
|
|
|
+#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 406)
|
|
|
|
+# pragma GCC diagnostic pop
|
|
|
|
+#endif
|
2014-05-03 14:29:10 -05:00
|
|
|
+
|
|
|
|
+#if defined(__clang__)
|
|
|
|
+# pragma clang diagnostic pop
|
|
|
|
+#endif
|
2014-04-30 08:09:57 -05:00
|
|
|
+
|
|
|
|
#endif // BOOST_MULTI_ARRAY_RG071801_HPP
|
|
|
|
--
|
|
|
|
1.8.3.1
|
|
|
|
|