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

-- 
Pavan Balaji
http://www.mcs.anl.gov/~balaji

Reply via email to