Boost logo

Boost Users :

Subject: [Boost-users] [math] Warning in math/common_factor_rt.hpp
From: Gabriel Redner (gredner_at_[hidden])
Date: 2010-07-01 10:54:00


Hi all,

I am getting a warning in math/common_factor_rt.hpp when compiling
some code which includes boost headers:

cc1plus: warnings being treated as errors
/build/toolchain/lin32/boost-1.42.0/include/boost/math/common_factor_rt.hpp:
In member function 'char
boost::math::detail::gcd_optimal_evaluator<char>::operator()(char,
char) const':
/build/toolchain/lin32/boost-1.42.0/include/boost/math/common_factor_rt.hpp:329:
warning: comparison is always false due to limited range of data type
/build/toolchain/lin32/boost-1.42.0/include/boost/math/common_factor_rt.hpp:329:
warning: comparison is always false due to limited range of data type

Unfortunately that's all the compiler prints - nothing which ties the
warning back to any particular piece of my code.

None of my code is using the math library directly, though the .cpp
being compiled here does include (mostly indirectly) a lot of boost
headers. These include multi_index, optional, some MPL and
type_traits, range, iterator, and probably others I am not seeing.

Any suggestions on how to work around this? Is it possible to disable
this warning?

I'm using boost 1.42.0 and i686-linux-g++ (GCC) 4.1.2

Thanks,
-Gabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net