Boost logo

Boost :

From: Paul A Bristow (pbristow_at_[hidden])
Date: 2005-11-11 13:29:58


To get quiet compilations (MSVC 8.0 release 140050727, level 4, no MS
extensions),

I have had to disable persistent warnings from
boost\test\detail\test_tools.hpp

by adding to supress_warning.hpp

# pragma warning(disable: 4127) // conditional expression is constant.
Entirely correct and expected.

# pragma warning(disable: 4180) // qualifier applied to function type has no
meaning; ignored

at:
    const_string message() const { return !m_message ? const_string() :
const_string( m_message->str() ); }

                            ^^ const not useful? but not wrong.

# pragma warning(disable: 4224) // nonstandard extension used : formal
parameter 'tool_level' was previously defined as a type

i:\boost_1_33_0\boost/test/test_tools.hpp(385) : warning C4224: nonstandard
extension used : formal parameter 'tool_level' was previously defined as a
type
i:\boost_1_33_0\boost/test/test_tools.hpp(427) : warning C4224: nonstandard
extension used : formal parameter 'tool_level' was previously defined as a
type
i:\boost_1_33_0\boost/test/test_tools.hpp(427) : warning C4224: nonstandard
extension used : formal parameter 'tool_level' was previously defined as a
type
i:\boost_1_33_0\boost/test/test_tools.hpp(427) : warning C4224: nonstandard
extension used : formal parameter 'tool_level' was previously defined as a
type
i:\boost_1_33_0\boost/test/test_tools.hpp(427) : warning C4224: nonstandard
extension used : formal parameter 'tool_level' was previously defined as a
type
i:\boost_1_33_0\boost/test/test_tools.hpp(427) : warning C4224: nonstandard
extension used : formal parameter 'tool_level' was previously defined as a
type

Is it complaining about re-using the name tool_level?

void check_impl( predicate_result const& pr, wrap_stringstream& check_descr,
                 const_string file_name, std::size_t line_num,
                 tool_level tool_level, check_type ct, <<<<<<<<<<<<<<
                 std::size_t num_args, ... );

Of these, only the latter might be worth worrying about?

Still works fine, but if you are tidying up sometime...

Paul

-- 
Paul A Bristow
Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB
Phone and SMS text +44 1539 561830, Mobile and SMS text +44 7714 330204
mailto: pbristow_at_[hidden]  www.hetp.u-net.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk