Subject: [Boost-bugs] [Boost C++ Libraries] #1495: Warnings could be suppressed in Boost.Test
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-12-03 10:57:25
#1495: Warnings could be suppressed in Boost.Test
--------------------------------+-------------------------------------------
Reporter: pabristow | Owner: rogeeff
Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: test
Version: Boost 1.34.1 | Severity: Cosmetic
Keywords: warning supression |
--------------------------------+-------------------------------------------
I get some warnings that I believe really are from Boost.Test and that I
suspect are unhelpful.
i:\trunk\boost/test/impl/unit_test_main.ipp(91) : warning C4310: cast
truncates constant value
at
case SFK_SUBSTR:
return name.find( m_value ) != const_string::npos;
Or is this telling me something about my test values?
i:\trunk\boost\test\impl\debug.ipp(908) : warning C4702: unreachable code
i:\trunk\boost\test\impl\debug.ipp(909) : warning C4702: unreachable code
i:\trunk\boost\test\impl\debug.ipp(911) : warning C4702: unreachable code
I added to detail/ suppress_warnings.hpp
# pragma warning(disable: 4310) // cast truncates constant value
# pragma warning(disable: 4702) // unreachable code
and they go away ;-)
If you agree with this, they could usefully be added?
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1495>
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:57 UTC