mirror of
https://github.com/boostorg/throw_exception.git
synced 2025-07-30 04:17:14 +02:00
Add -Wconversion et al to test/Jamfile
This commit is contained in:
@ -104,9 +104,9 @@ public:
|
|||||||
copy_from( &e );
|
copy_from( &e );
|
||||||
|
|
||||||
set_info( *this, throw_file( loc.file_name() ) );
|
set_info( *this, throw_file( loc.file_name() ) );
|
||||||
set_info( *this, throw_line( loc.line() ) );
|
set_info( *this, throw_line( static_cast<int>( loc.line() ) ) );
|
||||||
set_info( *this, throw_function( loc.function_name() ) );
|
set_info( *this, throw_function( loc.function_name() ) );
|
||||||
set_info( *this, throw_column( loc.column() ) );
|
set_info( *this, throw_column( static_cast<int>( loc.column() ) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual boost::exception_detail::clone_base const * clone() const BOOST_OVERRIDE
|
virtual boost::exception_detail::clone_base const * clone() const BOOST_OVERRIDE
|
||||||
|
@ -8,12 +8,21 @@
|
|||||||
|
|
||||||
import testing ;
|
import testing ;
|
||||||
|
|
||||||
project : requirements
|
local gcc-flags = -Wsign-promo -Wconversion -Wsign-conversion -Wshadow ;
|
||||||
<warnings>extra
|
|
||||||
<toolset>msvc:<warnings-as-errors>on
|
project
|
||||||
<toolset>clang:<warnings-as-errors>on
|
: requirements
|
||||||
<toolset>gcc:<warnings-as-errors>on
|
|
||||||
<toolset>gcc:<cxxflags>-Wshadow ;
|
<warnings>extra
|
||||||
|
|
||||||
|
<toolset>msvc:<warnings-as-errors>on
|
||||||
|
<toolset>clang:<warnings-as-errors>on
|
||||||
|
<toolset>gcc:<warnings-as-errors>on
|
||||||
|
|
||||||
|
<toolset>gcc:<cxxflags>$(gcc-flags)
|
||||||
|
<toolset>clang:<cxxflags>$(gcc-flags)
|
||||||
|
;
|
||||||
|
|
||||||
|
|
||||||
run throw_exception_test.cpp ;
|
run throw_exception_test.cpp ;
|
||||||
run throw_exception_no_exceptions_test.cpp ;
|
run throw_exception_no_exceptions_test.cpp ;
|
||||||
|
Reference in New Issue
Block a user