Boost logo

Geometry :

Subject: Re: [geometry] clang warnings from geometry.hpp
From: Barend Gehrels (barend_at_[hidden])
Date: 2013-08-26 13:49:21

On 26-8-2013 18:10, Vishnu wrote:
> I'm getting 2 clang warnings from the line below. Can these be eliminated?
> #include <boost/geometry/geometry.hpp>
> The clang warnings are:
> boost_1_54_0/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) {
> and
> boost_1_54_0/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) {

This is outside our library. I noticed them too. We cannot easily avoid
these warnings. We could if we would not use ublas (which is indeed the
plan, if we have proper replacement...).

You might contact the ublas team.

Or, actually, we could avoid them using a #pragma as done for MSVC too,
occasionally. clang apparently supports that. I will look at that - that
way is quite easy.

Thanks, Barend

Geometry list run by mateusz at