Open MPI logo

Hardware Locality Development Mailing List Archives

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

Subject: Re: [hwloc-devel] hwloc 1.1rc4r2838 warnings
From: Brice Goglin (Brice.Goglin_at_[hidden])
Date: 2010-11-25 01:20:22


Le 25/11/2010 05:26, Christopher Samuel a écrit :
> Not sure if these were present beforehand, but Ubuntu 10.04
> warns about the following issues on x86-64 when doing a "make check":
>
> /home/samuel/Downloads/HWLOC/v1.1/tests/ports/include/windows.h:23:
> warning: function declaration isn?t a prototype
> /home/samuel/Downloads/HWLOC/v1.1/tests/ports/include/windows.h:23:
> warning: function declaration isn?t a prototype
> topology-windows.c:209: warning: ISO C forbids assignment between
> function pointer and ?void *?
> topology-windows.c:210: warning: ISO C forbids assignment between
> function pointer and ?void *?
> topology-windows.c:214: warning: assignment from incompatible pointer type
> topology-windows.c:219: warning: assignment from incompatible pointer type
> topology-windows.c:280: warning: ISO C forbids assignment between
> function pointer and ?void *?
> topology-windows.c:281: warning: ISO C forbids assignment between
> function pointer and ?void *?
> topology-windows.c:282: warning: ISO C forbids assignment between
> function pointer and ?void *?
> topology-windows.c:283: warning: ISO C forbids assignment between
> function pointer and ?void *?
> topology-freebsd.c:125: warning: passing argument 3 of
> ?pthread_setaffinity_np? from incompatible pointer type
> topology-freebsd.c:149: warning: passing argument 3 of
> ?pthread_getaffinity_np? from incompatible pointer type

Many warning in topology-foo.c with foo != linux are expected. We
compile the other OS backends from Linux, so we get some unsolvable
incompatibilities between OS headers.

> xmlbuffer.c:39: warning: format not a string literal and no format
> arguments
> xmlbuffer.c:42: warning: format not a string literal and no format
> arguments

I am fixing these.

> SLES10 has these additional warnings:
>
> topology-linux.c:1002: warning: implicit declaration of function
> ?migrate_pages?

This is a bug in some old version of libnuma headers. They declared
migratepages instead of migrate_pages in numaif.h. I'll see if I can
workaround this easily.

> lstopo.c:186:5: warning: "CAIRO_HAS_SVG_SURFACE" is not defined
> lstopo.c:517:5: warning: "CAIRO_HAS_SVG_SURFACE" is not defined
> lstopo-cairo.c:22:5: warning: "CAIRO_HAS_SVG_SURFACE" is not defined
> lstopo-cairo.c:50:104: warning: "CAIRO_HAS_SVG_SURFACE" is not defined
> lstopo-cairo.c:87:79: warning: "CAIRO_HAS_SVG_SURFACE" is not defined
> lstopo-cairo.c:443:5: warning: "CAIRO_HAS_SVG_SURFACE" is not defined

Shouldn't be bad, we'll see.

> hwloc-distrib.c:199: warning: comparison between signed and unsigned

I am fixing this too.

Brice