Ticket #7340: warnings.patch

File warnings.patch, 2.1 KB (added by Alan Birtles <alan.birtles@…>, 10 years ago)

Patch to fix warnings

  • chain.hpp

     
    4444# include <boost/mpl/int.hpp>
    4545#endif
    4646
     47// Must come last.
     48#include <boost/iostreams/detail/config/disable_warnings.hpp>
     49
    4750// Sometimes type_info objects must be compared by name. Borrowed from
    4851// Boost.Python and Boost.Function.
    4952#if (defined(__GNUC__) && __GNUC__ >= 3) || \
     
    595598
    596599} } // End namespaces iostreams, boost.
    597600
     601#include <boost/iostreams/detail/config/enable_warnings.hpp>
     602
    598603#endif // #ifndef BOOST_IOSTREAMS_DETAIL_CHAIN_HPP_INCLUDED
  • detail/config/disable_warnings.hpp

     
    1414# pragma warning(disable:4130)    // Logical operation on address of string constant.
    1515# pragma warning(disable:4224)    // Parameter previously defined as type.
    1616# pragma warning(disable:4244)    // Conversion: possible loss of data.
     17# pragma warning(disable:4250)    // inherits via dominance
    1718# pragma warning(disable:4512)    // Assignment operator could not be generated.
     19# pragma warning(disable:4702)    // Unreachable code.
    1820# pragma warning(disable:4706)    // Assignment within conditional expression.
    1921# if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
    2022#  pragma warning(disable:6334)   // sizeof applied to an expression with an operator.
  • stream.hpp

     
    2323#include <boost/type_traits/is_convertible.hpp>
    2424#include <boost/utility/base_from_member.hpp>
    2525
     26// Must come last.
     27#include <boost/iostreams/detail/config/disable_warnings.hpp>
     28
    2629namespace boost { namespace iostreams { namespace detail {
    2730
    2831template<typename Device, typename Tr>
     
    148151
    149152#endif // #ifdef BOOST_IOSTREAMS_BROKEN_OVERLOAD_RESOLUTION
    150153
     154#include <boost/iostreams/detail/config/enable_warnings.hpp>
     155
    151156#endif // #ifndef BOOST_IOSTREAMS_stream_HPP_INCLUDED