Fix abs warnings and clang compiler warning flag

This commit is contained in:
Mario Mulansky 2017-05-07 13:07:10 -07:00
parent dd54cbf031
commit a452f6e816
3 changed files with 4 additions and 1 deletions

View File

@ -15,7 +15,7 @@ project
: requirements
<include>include&&$(BOOST_ROOT)
<toolset>gcc:<cxxflags>"-Wall -Wno-unused-parameter -Wno-unused-variable -Wno-unknown-pragmas -Wno-unused-local-typedefs"
<toolset>clang:<cxxflags>"-Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-unknown-pragmas -Wno-unused-local-typedefs"
<toolset>clang:<cxxflags>"-Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-unknown-pragmas -Wno-unused-local-typedef"
<toolset>intel:<cxxflags>"-ipo"
;

View File

@ -88,6 +88,7 @@ struct perform_stepper_test
typedef T vector_space_type;
void operator()( void ) const
{
using std::abs;
vector_space_type x;
x = 2.0;
Stepper stepper;

View File

@ -87,6 +87,7 @@ struct perform_controlled_stepper_test
typedef T vector_space_type;
void operator()( void ) const
{
using std::abs;
vector_space_type x;
x = 2.0;
ControlledStepper controlled_stepper;
@ -134,6 +135,7 @@ struct perform_controlled_stepper_test< ControlledStepper , vector_space_type >
{
void operator()( void ) const
{
using std::abs;
vector_space_type x;
x = 2.0;
ControlledStepper controlled_stepper;