Ticket #10911: boost_1_58_0-IOStreamsWarnings.patch

File boost_1_58_0-IOStreamsWarnings.patch, 1.6 KB (added by peter.klotz@…, 7 years ago)

Patch to fix the warnings

  • boost/iostreams/filter/bzip2.hpp

    diff -Nur boost_1_58_0/boost/iostreams/filter/bzip2.hpp boost_1_58_0.patched/boost/iostreams/filter/bzip2.hpp
    old new  
    3333// Must come last.
    3434#ifdef BOOST_MSVC
    3535# pragma warning(push)
    36 # pragma warning(disable:4251 4231 4660)
     36# pragma warning(disable:4251 4231 4660 4275)
    3737#endif
    3838#include <boost/config/abi_prefix.hpp>           
    3939
  • boost/iostreams/filter/gzip.hpp

    diff -Nur boost_1_58_0/boost/iostreams/filter/gzip.hpp boost_1_58_0.patched/boost/iostreams/filter/gzip.hpp
    old new  
    4343// Must come last.
    4444#if defined(BOOST_MSVC)
    4545# pragma warning(push)
    46 # pragma warning(disable: 4309)    // Truncation of constant value.
     46# pragma warning(disable: 4309 4251)    // Truncation of constant value.
    4747#endif
    4848
    4949#ifdef BOOST_NO_STDC_NAMESPACE
  • boost/iostreams/filter/zlib.hpp

    diff -Nur boost_1_58_0/boost/iostreams/filter/zlib.hpp boost_1_58_0.patched/boost/iostreams/filter/zlib.hpp
    old new  
    3535// Must come last.
    3636#ifdef BOOST_MSVC
    3737# pragma warning(push)
    38 # pragma warning(disable:4251 4231 4660)         // Dependencies not exported.
     38# pragma warning(disable:4251 4231 4660 4275)         // Dependencies not exported.
    3939#endif
    4040#include <boost/config/abi_prefix.hpp>           
    4141