[Boost-bugs] [Boost C++ Libraries] #3599: Patch to suppress warnings

Subject: [Boost-bugs] [Boost C++ Libraries] #3599: Patch to suppress warnings
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-11-09 13:28:50


#3599: Patch to suppress warnings
--------------------------+-------------------------------------------------
 Reporter: johnmaddock | Owner: no-maintainer
     Type: Patches | Status: new
Milestone: Boost 1.42.0 | Component: array
  Version: Boost 1.40.0 | Severity: Problem
 Keywords: |
--------------------------+-------------------------------------------------
 The attached patch suppresses a number of warnings from Boost.Array when
 the tests are build with /W4 and msvc-9.

 The warnings addressed are:

 {{{
 array0.cpp
 d:\data\boost\trunk\boost\array.hpp(291) : warning C4702: unreachable code
 d:\data\boost\trunk\boost\array.hpp(291) : warning C4702: unreachable code
 d:\data\boost\trunk\boost\array.hpp(291) : warning C4702: unreachable code
 d:\data\boost\trunk\boost\array.hpp(290) : warning C4702: unreachable code
 d:\data\boost\trunk\boost\array.hpp(291) : warning C4702: unreachable code
 array2.cpp(35) : warning C4996: 'std::transform': Function call with
 parameters that may be unsafe - this call relies on the caller to check
 that the passed values are correct. To disable this warning, use
 -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++
 'Checked Iterators'
         C:\Program Files\Microsoft Visual Studio
 9.0\VC\INCLUDE\algorithm(710) :
  see declaration of 'std::transform'
 }}}

 Let me know if you want me to commit.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3599>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC