diff options
-rw-r--r-- | external/boost/boost.multi_array.Wshadow.warnings.patch.2 | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/external/boost/boost.multi_array.Wshadow.warnings.patch.2 b/external/boost/boost.multi_array.Wshadow.warnings.patch.2 index c73a3d13fb6c..1f8f0b5b8ed1 100644 --- a/external/boost/boost.multi_array.Wshadow.warnings.patch.2 +++ b/external/boost/boost.multi_array.Wshadow.warnings.patch.2 @@ -11,7 +11,7 @@ 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 -@@ -18,6 +18,11 @@ +@@ -18,6 +18,16 @@ // declaration and definition // @@ -20,10 +20,15 @@ index 8193699..72b2294 100644 +# pragma GCC diagnostic ignored "-Wshadow" +#endif + ++#if defined(__clang__) ++# pragma clang diagnostic push ++# pragma clang diagnostic ignored "-Wshadow" ++#endif ++ #include "boost/multi_array/base.hpp" #include "boost/multi_array/collection_concept.hpp" #include "boost/multi_array/copy_array.hpp" -@@ -496,4 +501,8 @@ private: +@@ -496,4 +501,12 @@ private: } // namespace boost @@ -31,6 +36,10 @@ index 8193699..72b2294 100644 +# pragma GCC diagnostic pop +#endif + ++#if defined(__clang__) ++# pragma clang diagnostic pop ++#endif ++ #endif // BOOST_MULTI_ARRAY_RG071801_HPP -- 1.8.3.1 |