Open MPI logo

Hardware Locality Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Hardware Locality Development mailing list

Subject: Re: [hwloc-devel] hwloc-1.7 Warnings on FreeBSD
From: Samuel Thibault (samuel.thibault_at_[hidden])
Date: 2013-05-03 04:50:55


Pavan Balaji, le Fri 03 May 2013 06:45:10 +0200, a écrit :
> -Wbad-function-cast'.
>
> lstopo-draw.c:437: warning: cast from function call of type 'double' to
> non-matching type 'unsigned int'

I'm not sure to understand what one is supposed to do here.
double->float->unsigned is less precise than double->unsigned. I
don't know any standard function that would do the double->unsigned
conversion, thus simply casting, which should already be doing the job
exactly how we want, anyway...

Samuel