Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#10931 closed Bugs (fixed)

Many warnings when compiling with odeint

Reported by: ilja.honkonen@… Owned by: karsten
Milestone: To Be Determined Component: odeint
Version: Boost 1.57.0 Severity: Problem
Keywords: Cc:

Description

I get lots of warnings when compiling with odeint using Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn):

In file included from /Users/iljah/include/boost/numeric/odeint.hpp:27: In file included from /Users/iljah/include/boost/numeric/odeint/stepper/euler.hpp:23: In file included from /Users/iljah/include/boost/numeric/odeint/stepper/base/explicit_stepper_base.hpp:27: /Users/iljah/include/boost/numeric/odeint/util/unwrap_reference.hpp:36:22: warning: class template

'unwrap_reference' was previously declared as a struct template [-Wmismatched-tags]

template<typename T> class unwrap_reference;

/Users/iljah/include/boost/core/ref.hpp:239:29: note: previous use is here template<typename T> struct unwrap_reference

/Users/iljah/include/boost/numeric/odeint/util/unwrap_reference.hpp:36:22: note: did you mean struct here? template<typename T> class unwrap_reference;

struct

In file included from tests/particle/odeint.cpp:38: In file included from /Users/iljah/include/boost/numeric/odeint.hpp:27: /Users/iljah/include/boost/numeric/odeint/stepper/euler.hpp:79:31: warning: unused parameter 'system'

[-Wunused-parameter]

void do_step_impl( System system , const StateIn &in , const DerivIn &dxdt , time_type t , StateOut &ou...

/Users/iljah/include/boost/numeric/odeint/stepper/euler.hpp:79:92: warning: unused parameter 't'

[-Wunused-parameter]

void do_step_impl( System system , const StateIn &in , const DerivIn &dxdt , time_type t , StateOut &out , t...

/Users/iljah/include/boost/numeric/odeint/stepper/euler.hpp:87:113: warning: unused parameter 'current_state'

[-Wunused-parameter]

...&x , time_type t , const StateIn1 &old_state , time_type t_old , const StateIn2 &current_state , time_type ...

/Users/iljah/include/boost/numeric/odeint/stepper/euler.hpp:87:139: warning: unused parameter 't_new'

[-Wunused-parameter]

...t , const StateIn1 &old_state , time_type t_old , const StateIn2 &current_state , time_type t_new ) const

In file included from tests/particle/odeint.cpp:38: In file included from /Users/iljah/include/boost/numeric/odeint.hpp:32: In file included from /Users/iljah/include/boost/numeric/odeint/stepper/runge_kutta_dopri5.hpp:35: /Users/iljah/include/boost/numeric/odeint/util/same_instance.hpp:28:42: warning: unused parameter 'x1'

[-Wunused-parameter]

static bool same_instance( const T1 &x1 , const T2 &x2 )

/Users/iljah/include/boost/numeric/odeint/util/same_instance.hpp:28:57: warning: unused parameter 'x2'

[-Wunused-parameter]

static bool same_instance( const T1 &x1 , const T2 &x2 )

In file included from tests/particle/odeint.cpp:38: In file included from /Users/iljah/include/boost/numeric/odeint.hpp:48: In file included from /Users/iljah/include/boost/numeric/odeint/stepper/symplectic_euler.hpp:22: /Users/iljah/include/boost/numeric/odeint/stepper/base/symplectic_rkn_stepper_base.hpp:185:70: warning: unused

parameter 't' [-Wunused-parameter]

void do_step_impl( System system , const StateIn &in , time_type t , StateOut &out , time_type dt , boos...

In file included from tests/particle/odeint.cpp:38: In file included from /Users/iljah/include/boost/numeric/odeint.hpp:52: In file included from /Users/iljah/include/boost/numeric/odeint/stepper/adams_bashforth_moulton.hpp:34: In file included from /Users/iljah/include/boost/numeric/odeint/stepper/adams_bashforth.hpp:44: /Users/iljah/include/boost/numeric/odeint/stepper/detail/adams_bashforth_call_algebra.hpp:116:31: warning: unused

parameter 'algebra' [-Wunused-parameter]

void operator()( Algebra &algebra , const StateIn &in , StateOut &out , const StepStorage &steps , cons...

/Users/iljah/include/boost/numeric/odeint/stepper/detail/adams_bashforth_call_algebra.hpp:131:31: warning: unused

parameter 'algebra' [-Wunused-parameter]

void operator()( Algebra &algebra , const StateIn &in , StateOut &out , const StepStorage &steps , cons...

In file included from tests/particle/odeint.cpp:38: In file included from /Users/iljah/include/boost/numeric/odeint.hpp:52: In file included from /Users/iljah/include/boost/numeric/odeint/stepper/adams_bashforth_moulton.hpp:35: In file included from /Users/iljah/include/boost/numeric/odeint/stepper/adams_moulton.hpp:38: /Users/iljah/include/boost/numeric/odeint/stepper/detail/adams_moulton_call_algebra.hpp:35:118: warning: unused

parameter 'steps' [-Wunused-parameter]

...&algebra , const StateIn &in , StateOut &out , const DerivIn &dxdt , const StepStorage &steps , const Coeffi...

In file included from tests/particle/odeint.cpp:38: In file included from /Users/iljah/include/boost/numeric/odeint.hpp:60: /Users/iljah/include/boost/numeric/odeint/algebra/multi_array_algebra.hpp:114:148: warning: unused parameter 's13'

[-Wunused-parameter]

...S5 &s5 , S6 &s6 , S7 &s7 , S8 &s8 , S9 &s9 , S10 &s10 , S11 &s11 , S12 &s12 , S13 &s13 , S14 &s14 , Op op )

/Users/iljah/include/boost/numeric/odeint/algebra/multi_array_algebra.hpp:120:148: warning: unused parameter 's13'

[-Wunused-parameter]

...S6 &s6 , S7 &s7 , S8 &s8 , S9 &s9 , S10 &s10 , S11 &s11 , S12 &s12 , S13 &s13 , S14 &s14 , S15 &s15 , Op op )

In file included from tests/particle/odeint.cpp:38: In file included from /Users/iljah/include/boost/numeric/odeint.hpp:77: In file included from /Users/iljah/include/boost/numeric/odeint/iterator/adaptive_iterator.hpp:26: /Users/iljah/include/boost/numeric/odeint/iterator/impl/adaptive_iterator_impl.hpp:208:86: warning: unused parameter

's' [-Wunused-parameter]

adaptive_iterator_impl( stepper_type stepper , system_type sys , state_type &s )

In file included from tests/particle/odeint.cpp:38: In file included from /Users/iljah/include/boost/numeric/odeint.hpp:79: In file included from /Users/iljah/include/boost/numeric/odeint/iterator/const_step_iterator.hpp:26: /Users/iljah/include/boost/numeric/odeint/iterator/impl/const_step_iterator_impl.hpp:80:88: warning: unused

parameter 's' [-Wunused-parameter]

const_step_iterator_impl( stepper_type stepper , system_type sys , state_type &s )

In file included from tests/particle/odeint.cpp:38: In file included from /Users/iljah/include/boost/numeric/odeint.hpp:25: In file included from /Users/iljah/include/boost/numeric/odeint/util/ublas_wrapper.hpp:23: In file included from /Users/iljah/include/boost/numeric/ublas/vector.hpp:19: In file included from /Users/iljah/include/boost/numeric/ublas/storage.hpp:26: /Users/iljah/include/boost/numeric/ublas/traits.hpp:45:27: warning: unused function 'boost_numeric_ublas_abs'

[-Wunused-function]

template<> unsigned int boost_numeric_ublas_abs (const unsigned int& t) {

/Users/iljah/include/boost/numeric/ublas/traits.hpp:49:28: warning: unused function 'boost_numeric_ublas_abs'

[-Wunused-function]

template<> unsigned long boost_numeric_ublas_abs (const unsigned long& t) {

17 warnings generated.

Change History (2)

comment:1 by karsten, 8 years ago

Resolution: fixed
Status: newclosed

Fixed in github version. The fix should appear in 1.58.

comment:2 by anonymous, 8 years ago

Thanks!

Note: See TracTickets for help on using tickets.