[Boost-bugs] [Boost C++ Libraries] #1415: Warnings need suppression in Boost.Test

Subject: [Boost-bugs] [Boost C++ Libraries] #1415: Warnings need suppression in Boost.Test
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-11-06 17:06:24


#1415: Warnings need suppression in Boost.Test
--------------------------------------+-------------------------------------
 Reporter: pbristow | Owner: rogeeff
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: test
  Version: Boost 1.34.1 | Severity: Optimization
 Keywords: test warning suppression |
--------------------------------------+-------------------------------------
 Using

 #include <boost/test/included/test_exec_monitor.hpp>

 for various BOOST_CHECKs produces a blizzard of warnings at MSVC level 4.

 I have added this to my .cpp file

 #if defined (_MSC_VER)
 # pragma warning(disable : 4310) // cast truncates constant value
 # pragma warning(disable : 4512) // assignment operator could not be
 generated
 # pragma warning(disable : 4702) // unreachable code
 #endif

 But it would be better to suppress these 'at source' with push'n'pops in
 individual modules?

 # pragma warning(push)

 # pragma warning(pop)

 Thanks.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1415>
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:49:56 UTC