forked from boostorg/throw_exception
Add <warnings>extra to test/Jamfile
This commit is contained in:
@ -2,6 +2,11 @@
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// http://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
# pragma warning(disable: 4702) // unreachable code
|
||||
# pragma warning(disable: 4577) // noexcept used without /EHsc
|
||||
#endif
|
||||
|
||||
#include <boost/throw_exception.hpp>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
@ -22,7 +27,7 @@ void throw_exception( std::exception const &, boost::source_location const & loc
|
||||
int r = 0;
|
||||
|
||||
if( std::strcmp( loc.file_name(), __FILE__ ) != 0 ) ++r;
|
||||
if( loc.line() != 13 ) ++r;
|
||||
if( loc.line() != 18 ) ++r;
|
||||
|
||||
std::exit( r );
|
||||
}
|
||||
|
Reference in New Issue
Block a user