[Boost-bugs] [Boost C++ Libraries] #1631: [accumulators] compiler warnings with VC9 + warning level 4

Subject: [Boost-bugs] [Boost C++ Libraries] #1631: [accumulators] compiler warnings with VC9 + warning level 4
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-02-10 00:01:12


#1631: [accumulators] compiler warnings with VC9 + warning level 4
---------------------------------------------------------+------------------
 Reporter: Richard Webb <richard.webb_at_[hidden]> | Owner: eric_niebler
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: accumulator
  Version: Boost Development Trunk | Severity: Cosmetic
 Keywords: |
---------------------------------------------------------+------------------
 Running the accumulators tests with VC9 on warning level 4 produces quite
 a few warnings:

 assignment operator could not be generated:
 {{{
 boost/accumulators/framework/accumulators/droppable_accumulator.hpp(53) :
 warning C4512: 'boost::accumulators::detail::add_ref_visitor<Args>' :
 assignment operator could not be generated
 boost/accumulators/framework/accumulators/droppable_accumulator.hpp(92) :
 warning C4512: 'boost::accumulators::detail::drop_visitor<Args>' :
 assignment operator could not be generated
 boost/accumulators/framework/accumulator_set.hpp(58) : warning C4512:
 'boost::accumulators::detail::accumulator_visitor<Args>' : assignment
 operator could not be generated
 boost/accumulators/statistics/tail.hpp(258) : warning C4512:
 'boost::accumulators::impl::tail_impl<Sample,LeftRight>::indirect_cmp' :
 assignment operator could not be generated
 boost/accumulators/statistics/tail.hpp(88) : warning C4512:
 'boost::accumulators::detail::stat_assign_visitor<Args>' : assignment
 operator could not be generated
 }}}

 unreferenced formal parameter:
 {{{
 boost/accumulators/statistics/weighted_extended_p_square.hpp(243) :
 warning C4100: 'args' : unreferenced formal parameter
 boost/accumulators/statistics/weighted_p_square_quantile.hpp(206) :
 warning C4100: 'args' : unreferenced formal parameter
 boost/accumulators/statistics/weighted_median.hpp(137) : warning C4100:
 'args' : unreferenced formal parameter
 boost/accumulators/framework/accumulators/droppable_accumulator.hpp(127) :
 warning C4100: 'args' : unreferenced formal parameter
 boost/accumulators/statistics/extended_p_square.hpp(226) : warning C4100:
 'args' : unreferenced formal parameter
 boost/accumulators/statistics/p_square_quantile.hpp(189) : warning C4100:
 'args' : unreferenced formal parameter
 }}}

 conditional expression is constant:
 {{{
 boost/accumulators/statistics/tail_quantile.hpp(83) : warning C4127:
 conditional expression is constant
 boost/accumulators/statistics/tail_mean.hpp(144) : warning C4127:
 conditional expression is constant
 boost/accumulators/statistics/tail_variate_means.hpp(124) : warning C4127:
 conditional expression is constant
 boost/accumulators/statistics/weighted_tail_mean.hpp(104) : warning C4127:
 conditional expression is constant
 boost/accumulators/statistics/weighted_peaks_over_threshold.hpp(177) :
 warning C4127: conditional expression is constant
 boost/accumulators/statistics/weighted_tail_quantile.hpp(88) : warning
 C4127: conditional expression is constant
 boost/accumulators/statistics/weighted_tail_variate_means.hpp(131) :
 warning C4127: conditional expression is constant
 boost/accumulators/statistics/extended_p_square_quantile.hpp(101) :
 warning C4127: conditional expression is constant
 boost/accumulators/statistics/peaks_over_threshold.hpp(271) : warning
 C4127: conditional expression is constant
 }}}

 Unfortunately these are a bit difficult to spot in the logs as they get
 buried under loads of 4512 warnings from fusion, random, and others :(

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1631>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:57 UTC