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: Brice Goglin (Brice.Goglin_at_[hidden])
Date: 2013-05-03 01:57:49


Thanks, all of them are harmless but I'll see if I can fix some of them
without changing too many things. FreeBSD has a "cpuset" function so a
lot of our variables conflict with it.

Brice

Le 03/05/2013 06:44, Pavan Balaji a écrit :
> Folks,
>
> hwloc-1.7 is throwing a number of warnings on FreeBSD. Most of them are
> for global variables being shadowed and incorrect function casting. I
> am able to reproduce it with CFLAGS='-Wall -Wextra -Wshadow
> -Wbad-function-cast'.
>
> Here are some of the warnings --
>
> In file included from
> /home/balaji/software/mpich/hwloc/include/hwloc.h:2225,
> from topology-freebsd.c:26:
> /home/balaji/software/mpich/hwloc/include/hwloc/helper.h: In function
> 'hwloc_distribute':
> /home/balaji/software/mpich/hwloc/include/hwloc/helper.h:786: warning:
> declaration of 'cpuset' shadows a global declaration
> /usr/include/sys/cpuset.h:222: warning: shadowed declaration is here
> /home/balaji/software/mpich/hwloc/include/hwloc/helper.h: In function
> 'hwloc_distributev':
> /home/balaji/software/mpich/hwloc/include/hwloc/helper.h:806: warning:
> declaration of 'cpuset' shadows a global declaration
>
>
> lstopo-draw.c: In function 'pci_device_draw':
> lstopo-draw.c:437: warning: cast from function call of type 'double' to
> non-matching type 'unsigned int'
> lstopo-draw.c:437: warning: cast from function call of type 'double' to
> non-matching type 'unsigned int'
> lstopo-draw.c:444: warning: cast from function call of type 'double' to
> non-matching type 'unsigned int'
> lstopo-draw.c:444: warning: cast from function call of type 'double' to
> non-matching type 'unsigned int'
>
> -- Pavan
>