Ticket #9886: 0001-multi_array-suppress-GCC-Wshadow-warnings-fixes-9886.patch

File 0001-multi_array-suppress-GCC-Wshadow-warnings-fixes-9886.patch, 1.0 KB (added by mstahl@…, 8 years ago)
  • include/boost/multi_array.hpp

    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 b  
    1818// declaration and definition
    1919//
    2020
     21#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 406)
     22#  pragma GCC diagnostic push
     23#  pragma GCC diagnostic ignored "-Wshadow"
     24#endif
     25
    2126#include "boost/multi_array/base.hpp"
    2227#include "boost/multi_array/collection_concept.hpp"
    2328#include "boost/multi_array/copy_array.hpp"
    private:  
    496501
    497502} // namespace boost
    498503
     504#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 406)
     505#  pragma GCC diagnostic pop
     506#endif
     507
    499508#endif // BOOST_MULTI_ARRAY_RG071801_HPP