Open MPI logo

Hardware Locality Development Mailing List Archives

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

Subject: Re: [hwloc-devel] de-c99
From: Samuel Thibault (samuel.thibault_at_[hidden])
Date: 2011-02-18 12:27:19


Jeff Squyres, le Fri 18 Feb 2011 17:18:57 +0100, a écrit :
> /users/jsquyres/hg/hwloc-de-c99/tests/ports/include/windows.h:23:1: warning: function declaration isn’t a prototype

This is expected.

> topology-aix.c: In function ‘hwloc_aix_set_thisproc_cpubind’:
> topology-aix.c:90:18: warning: ISO C90 forbids specifying subobject to initialize

These should be fixed by separating initialization. I really don't want
to see a magic number of 0s :)

> topology-windows.c:164:4: warning: ISO C doesn’t support unnamed structs/unions

There's not much possible here, the C microsoft API is simply like
this....

> topology-windows.c:318:17: warning: ISO C forbids assignment between function pointer and ‘void *’
> topology-windows.c:323:30: warning: assignment from incompatible pointer type

These are expected.

> topology-freebsd.c: In function ‘hwloc_freebsd_set_thread_cpubind’:
> topology-freebsd.c:126:3: warning: passing argument 3 of ‘pthread_setaffinity_np’ from incompatible pointer type
> /usr/include/pthread.h:445:12: note: expected ‘const struct cpu_set_t *’ but argument is of type ‘cpuset_t *’
> topology-freebsd.c: In function ‘hwloc_freebsd_get_thread_cpubind’:
> topology-freebsd.c:150:3: warning: passing argument 3 of ‘pthread_getaffinity_np’ from incompatible pointer type
> /usr/include/pthread.h:450:12: note: expected ‘struct cpu_set_t *’ but argument is of type ‘cpuset_t *’

These are expected.

There rest should be possible to fix.

Samuel