Fix compiler warnings, activate parallel CI build

This commit is contained in:
Mario Mulansky 2017-05-07 13:27:57 -07:00
parent a452f6e816
commit ff3fd556cb
3 changed files with 6 additions and 5 deletions

View File

@ -42,4 +42,4 @@ before_install:
- $CC --version
script:
- $BOOST_ROOT/b2 toolset=$CC cxxflags='$CXXSTD'
- $BOOST_ROOT/b2 toolset=$CC cxxflags='$CXXSTD' -j4

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-typedef"
<toolset>clang:<cxxflags>"-Wall -Wextra -Wno-unknown-warning-option -Wno-unused-function -Wno-unused-parameter -Wno-unknown-pragmas -Wno-unused-local-typedef"
<toolset>intel:<cxxflags>"-ipo"
;

View File

@ -59,13 +59,14 @@ BOOST_AUTO_TEST_CASE( regression_189 )
x , 0.0 , 50.0 , 0.01 ,
std::cout << phoenix::arg_names::arg2 << " " << phoenix::arg_names::arg1[0] << "\n" );
// regression: number of steps should be 74
BOOST_CHECK_EQUAL( num_of_steps , 74 );
size_t num_of_steps_expected = 74;
BOOST_CHECK_EQUAL( num_of_steps , num_of_steps_expected );
vector_type x2( 2 , 1.0 );
size_t num_of_steps2 = integrate_const( make_dense_output< runge_kutta_dopri5< vector_type > >( 1.0e-6 , 1.0e-6 ) ,
stiff_system() , x2 , 0.0 , 50.0 , 0.01 ,
std::cout << phoenix::arg_names::arg2 << " " << phoenix::arg_names::arg1[0] << "\n" );
BOOST_CHECK_EQUAL( num_of_steps2 , 1531 );
num_of_steps_expected = 1531;
BOOST_CHECK_EQUAL( num_of_steps2 , num_of_steps_expected );
}