Subject: [Boost-bugs] [Boost C++ Libraries] #3646: Boost.test build of libraries - warnings ttat could be silenced.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-11-19 18:53:28
#3646: Boost.test build of libraries - warnings ttat could be silenced.
---------------------------+------------------------------------------------
Reporter: pbristow | Owner: rogeeff
Type: Patches | Status: new
Milestone: Boost 1.42.0 | Component: test
Version: Boost 1.41.0 | Severity: Cosmetic
Keywords: test warnings |
---------------------------+------------------------------------------------
A few more warnings in Boost.Test could be silenced - to get to the zero
warnings nirvana state ;-)
I am also a bit concerned about:
wd4671 # the copy constructor is inaccessible.
wd4673 # A throw object cannot be handled in the catch block.
which look a bit as though they really ought to be fixed?
(or why not documented 'why not' a bit more fully?)
But a jamfile including this produced a clear build for me starting with
1.41.0
{{{
project boost/test : source-location ../src
: requirements <link>shared:<define>BOOST_TEST_DYN_LINK=1
<toolset>msvc:<asynch-exceptions>on # /Eha synch-
exceptions are needed for Boost.Test.
<toolset>borland:<cxxflags>-w-8080
# Disable Warning about boost::noncopyable not being
exported.
<link>shared,<toolset>msvc:<cxxflags>-wd4275 # inline
assembly instruction that may not produce accurate results on some Pentium
microprocessors.
<toolset>msvc:<cxxflags>-wd4671 # the copy constructor
is inaccessible.
<toolset>msvc:<cxxflags>-wd4673 # A throw object cannot
be handled in the catch block.
<toolset>msvc:<cxxflags>-wd4996 # Suppress warning
'putenv': POSIX name for this item is deprecated.
<toolset>msvc:<cxxflags>-wd4701 # Potentially
uninitialised variable used.
<toolset>msvc:<cxxflags>-wd4701 # Unreachable code.
<toolset>msvc:<asynch-exceptions>on # /Eha synch-
exceptions are needed for Boost.Test.
<warnings>all
: usage-requirements
<define>BOOST_TEST_NO_AUTO_LINK=1
# Disable Warning about boost::noncopyable not being
exported.
<link>shared,<toolset>msvc:<cxxflags>-wd4275 # inline
assembly instruction that may not produce accurate results on some Pentium
microprocessors.
;
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3646> 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