Boost C++ Libraries: Ticket #10931: Many warnings when compiling with odeint https://svn.boost.org/trac10/ticket/10931 <p> I get lots of warnings when compiling with odeint using Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn): </p> <p> 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 </p> <blockquote> <p> 'unwrap_reference' was previously declared as a struct template [-Wmismatched-tags] </p> </blockquote> <p> template&lt;typename T&gt; class unwrap_reference; </p> <blockquote> <p> <sup> </sup></p> </blockquote> <p> /Users/iljah/include/boost/core/ref.hpp:239:29: note: previous use is here template&lt;typename T&gt; struct unwrap_reference </p> <blockquote> <p> <sup> </sup></p> </blockquote> <p> /Users/iljah/include/boost/numeric/odeint/util/unwrap_reference.hpp:36:22: note: did you mean struct here? template&lt;typename T&gt; class unwrap_reference; </p> <blockquote> <p> <sup><del></del> struct </sup></p> </blockquote> <p> 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' </p> <blockquote> <p> [-Wunused-parameter] </p> </blockquote> <blockquote> <p> void do_step_impl( System system , const <a class="missing wiki">StateIn</a> &amp;in , const <a class="missing wiki">DerivIn</a> &amp;dxdt , time_type t , <a class="missing wiki">StateOut</a> &amp;ou... </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> /Users/iljah/include/boost/numeric/odeint/stepper/euler.hpp:79:92: warning: unused parameter 't' </p> <blockquote> <p> [-Wunused-parameter] </p> </blockquote> <blockquote> <p> void do_step_impl( System system , const <a class="missing wiki">StateIn</a> &amp;in , const <a class="missing wiki">DerivIn</a> &amp;dxdt , time_type t , <a class="missing wiki">StateOut</a> &amp;out , t... </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> /Users/iljah/include/boost/numeric/odeint/stepper/euler.hpp:87:113: warning: unused parameter 'current_state' </p> <blockquote> <p> [-Wunused-parameter] </p> </blockquote> <blockquote> <p> ...&amp;x , time_type t , const StateIn1 &amp;old_state , time_type t_old , const StateIn2 &amp;current_state , time_type ... </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> /Users/iljah/include/boost/numeric/odeint/stepper/euler.hpp:87:139: warning: unused parameter 't_new' </p> <blockquote> <p> [-Wunused-parameter] </p> </blockquote> <blockquote> <p> ...t , const StateIn1 &amp;old_state , time_type t_old , const StateIn2 &amp;current_state , time_type t_new ) const </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> 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' </p> <blockquote> <p> [-Wunused-parameter] </p> </blockquote> <blockquote> <p> static bool same_instance( const T1 &amp;x1 , const T2 &amp;x2 ) </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> /Users/iljah/include/boost/numeric/odeint/util/same_instance.hpp:28:57: warning: unused parameter 'x2' </p> <blockquote> <p> [-Wunused-parameter] </p> </blockquote> <blockquote> <p> static bool same_instance( const T1 &amp;x1 , const T2 &amp;x2 ) </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> 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 </p> <blockquote> <p> parameter 't' [-Wunused-parameter] </p> </blockquote> <blockquote> <p> void do_step_impl( System system , const <a class="missing wiki">StateIn</a> &amp;in , time_type t , <a class="missing wiki">StateOut</a> &amp;out , time_type dt , boos... </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> 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 </p> <blockquote> <p> parameter 'algebra' [-Wunused-parameter] </p> </blockquote> <blockquote> <p> void operator()( Algebra &amp;algebra , const <a class="missing wiki">StateIn</a> &amp;in , <a class="missing wiki">StateOut</a> &amp;out , const <a class="missing wiki">StepStorage</a> &amp;steps , cons... </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> /Users/iljah/include/boost/numeric/odeint/stepper/detail/adams_bashforth_call_algebra.hpp:131:31: warning: unused </p> <blockquote> <p> parameter 'algebra' [-Wunused-parameter] </p> </blockquote> <blockquote> <p> void operator()( Algebra &amp;algebra , const <a class="missing wiki">StateIn</a> &amp;in , <a class="missing wiki">StateOut</a> &amp;out , const <a class="missing wiki">StepStorage</a> &amp;steps , cons... </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> 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 </p> <blockquote> <p> parameter 'steps' [-Wunused-parameter] </p> </blockquote> <blockquote> <p> ...&amp;algebra , const <a class="missing wiki">StateIn</a> &amp;in , <a class="missing wiki">StateOut</a> &amp;out , const <a class="missing wiki">DerivIn</a> &amp;dxdt , const <a class="missing wiki">StepStorage</a> &amp;steps , const Coeffi... </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> 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' </p> <blockquote> <p> [-Wunused-parameter] </p> </blockquote> <blockquote> <p> ...S5 &amp;s5 , S6 &amp;s6 , S7 &amp;s7 , S8 &amp;s8 , S9 &amp;s9 , S10 &amp;s10 , S11 &amp;s11 , S12 &amp;s12 , S13 &amp;s13 , S14 &amp;s14 , Op op ) </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> /Users/iljah/include/boost/numeric/odeint/algebra/multi_array_algebra.hpp:120:148: warning: unused parameter 's13' </p> <blockquote> <p> [-Wunused-parameter] </p> </blockquote> <blockquote> <p> ...S6 &amp;s6 , S7 &amp;s7 , S8 &amp;s8 , S9 &amp;s9 , S10 &amp;s10 , S11 &amp;s11 , S12 &amp;s12 , S13 &amp;s13 , S14 &amp;s14 , S15 &amp;s15 , Op op ) </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> 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 </p> <blockquote> <p> 's' [-Wunused-parameter] </p> <blockquote> <p> adaptive_iterator_impl( stepper_type stepper , system_type sys , state_type &amp;s ) </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> </blockquote> <p> 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 </p> <blockquote> <p> parameter 's' [-Wunused-parameter] </p> <blockquote> <p> const_step_iterator_impl( stepper_type stepper , system_type sys , state_type &amp;s ) </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> </blockquote> <p> 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' </p> <blockquote> <p> [-Wunused-function] </p> </blockquote> <blockquote> <p> template&lt;&gt; unsigned int boost_numeric_ublas_abs (const unsigned int&amp; t) { </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> /Users/iljah/include/boost/numeric/ublas/traits.hpp:49:28: warning: unused function 'boost_numeric_ublas_abs' </p> <blockquote> <p> [-Wunused-function] </p> </blockquote> <blockquote> <p> template&lt;&gt; unsigned long boost_numeric_ublas_abs (const unsigned long&amp; t) { </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> 17 warnings generated. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10931 Trac 1.4.3 karsten Thu, 29 Jan 2015 22:28:56 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/10931#comment:1 https://svn.boost.org/trac10/ticket/10931#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Fixed in github version. The fix should appear in 1.58. </p> Ticket anonymous Thu, 29 Jan 2015 23:19:57 GMT <link>https://svn.boost.org/trac10/ticket/10931#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10931#comment:2</guid> <description> <p> Thanks! </p> </description> <category>Ticket</category> </item> </channel> </rss>