Open MPI logo

Hardware Locality Development Mailing List Archives

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

Subject: Re: [hwloc-devel] [hwloc] #16: hwloc build fails with strict compiler flags
From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2009-10-21 14:14:16


Cool; I filed #18 and #19 about these. I'll fix the "mixed
declarations and code" issue right now.

On Oct 21, 2009, at 1:45 PM, Pavan Balaji wrote:

>
> On 10/21/2009 11:59 AM, Jeff Squyres wrote:
> > Can you send a copy of your stderr? I don't get the warnings about
> > fgets output not getting checked.
>
> Here you go:
>
> libtool: compile: gcc -DHAVE_CONFIG_H -I.
> -I/home/balaji/projects/mpich2/hydra/hydra/tools/bind/hwloc/hwloc/src
> -I../include/private -I../include/hwloc
> -I/home/balaji/projects/mpich2/hydra/hydra/tools/bind/hwloc/hwloc/
> include
> -I../include -std=c99 -Wall -Wmissing-prototypes -Wundef -Wpointer-
> arith
> -Wcast-align -O2 -Wall -Wextra -Wno-missing-field-initializers
> -Wstrict-prototypes -Wmissing-prototypes -DGCC_WALL
> -Wno-unused-parameter -Wno-unused-label -Wshadow -Wmissing-
> declarations
> -Wno-long-long -Wfloat-equal -Wdeclaration-after-statement -Wundef
> -Wno-endif-labels -Wpointer-arith -Wbad-function-cast -Wcast-align
> -Wwrite-strings -Wno-sign-compare -Waggregate-return
> -Wold-style-definition -Wno-multichar -Wno-deprecated-declarations
> -Wpacked -Wnested-externs -Winvalid-pch -Wno-pointer-sign
> -Wvariadic-macros -std=c89 -Wno-format-zero-length -Wno-type-limits
> -D_POSIX_C_SOURCE=199506L -MT cpuset.lo -MD -MP -MF .deps/cpuset.Tpo
> -c
> /home/balaji/projects/mpich2/hydra/hydra/tools/bind/hwloc/hwloc/src/
> cpuset.c
> -o cpuset.o >/dev/null 2>&1
> /home/balaji/projects/mpich2/hydra/hydra/tools/bind/hwloc/hwloc/src/
> cpuset.c:
> In function 'hwloc_snprintf':
> /home/balaji/projects/mpich2/hydra/hydra/tools/bind/hwloc/hwloc/src/
> cpuset.c:37:
> warning: implicit declaration of function 'vsnprintf'
> /home/balaji/projects/mpich2/hydra/hydra/tools/bind/hwloc/hwloc/src/
> cpuset.c:37:
> warning: nested extern declaration of 'vsnprintf'
> /home/balaji/projects/mpich2/hydra/hydra/tools/bind/hwloc/hwloc/src/
> topology-linux.c:
> In function 'hwloc_linux_set_thread_cpubind':
> /home/balaji/projects/mpich2/hydra/hydra/tools/bind/hwloc/hwloc/src/
> topology-linux.c:170:
> warning: ISO C90 forbids mixed declarations and code
> /home/balaji/projects/mpich2/hydra/hydra/tools/bind/hwloc/hwloc/src/
> topology-linux.c:
> In function 'hwloc_parse_sysfs_unsigned':
> /home/balaji/projects/mpich2/hydra/hydra/tools/bind/hwloc/hwloc/src/
> topology-linux.c:241:
> warning: ignoring return value of 'fgets', declared with attribute
> warn_unused_result
> /home/balaji/projects/mpich2/hydra/hydra/tools/bind/hwloc/hwloc/src/
> topology-linux.c:
> In function 'hwloc_read_cpuset_mask':
> /home/balaji/projects/mpich2/hydra/hydra/tools/bind/hwloc/hwloc/src/
> topology-linux.c:326:
> warning: ignoring return value of 'fgets', declared with attribute
> warn_unused_result
> /home/balaji/projects/mpich2/hydra/hydra/tools/bind/hwloc/hwloc/src/
> topology-linux.c:346:
> warning: ignoring return value of 'fgets', declared with attribute
> warn_unused_result
> /home/balaji/projects/mpich2/hydra/hydra/tools/bind/hwloc/hwloc/src/
> topology-linux.c:
> In function 'look_cpuinfo':
> /home/balaji/projects/mpich2/hydra/hydra/tools/bind/hwloc/hwloc/src/
> topology-linux.c:863:
> warning: ignoring return value of 'fscanf', declared with attribute
> warn_unused_result
> /home/balaji/projects/mpich2/hydra/hydra/tools/bind/hwloc/hwloc/src/
> topology-linux.c:
> In function 'hwloc__get_dmi_info':
> /home/balaji/projects/mpich2/hydra/hydra/tools/bind/hwloc/hwloc/src/
> topology-linux.c:917:
> warning: ignoring return value of 'fgets', declared with attribute
> warn_unused_result
> /home/balaji/projects/mpich2/hydra/hydra/tools/bind/hwloc/hwloc/src/
> topology-linux.c:931:
> warning: ignoring return value of 'fgets', declared with attribute
> warn_unused_result
>
> -- Pavan
>
> --
> Pavan Balaji
> http://www.mcs.anl.gov/~balaji
> _______________________________________________
> hwloc-devel mailing list
> hwloc-devel_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/hwloc-devel
>

-- 
Jeff Squyres
jsquyres_at_[hidden]