You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been seeing these compiler warnings lately when building the shmemx tests:
../../../test/shmemx/put_signal_nbi.c: In function 'main':
../../../test/shmemx/put_signal_nbi.c:70:5: warning: pointer targets in passing argument 1 of 'shmem_wait_until' differ in signedness [-Wpointer-sign]
shmem_wait_until(&sig_addr, SHMEM_CMP_EQ, 1);
^
In file included from ../../../test/shmemx/put_signal_nbi.c:34:0:
../../mpp/shmem.h:1602:32: note: expected 'long int *' but argument is of type 'uint64_t *'
SHMEM_FUNCTION_ATTRIBUTES void shmem_wait_until(long *ivar, int cmp, long value);
^
../../../test/shmemx/put_signal.c: In function 'main':
../../../test/shmemx/put_signal.c:68:9: warning: pointer targets in passing argument 1 of 'shmem_wait_until' differ in signedness [-Wpointer-sign]
shmem_wait_until(&sig_addr, SHMEM_CMP_EQ, 1);
^
In file included from ../../../test/shmemx/put_signal.c:35:0:
../../mpp/shmem.h:1602:32: note: expected 'long int *' but argument is of type 'uint64_t *'
SHMEM_FUNCTION_ATTRIBUTES void shmem_wait_until(long *ivar, int cmp, long value);
^
../../../test/shmemx/put_signal.c:70:9: warning: pointer targets in passing argument 1 of 'shmem_wait_until' differ in signedness [-Wpointer-sign]
shmem_wait_until(&sig_addr, SHMEM_CMP_EQ, 1);
^
In file included from ../../../test/shmemx/put_signal.c:35:0:
../../mpp/shmem.h:1602:32: note: expected 'long int *' but argument is of type 'uint64_t *'
SHMEM_FUNCTION_ATTRIBUTES void shmem_wait_until(long *ivar, int cmp, long value);
^
It looks like this compiler (gcc in Travis's Trusty image) does not have C11 generic support and ends up using the legacy untyped API (with a long 1st argument) here.
We might be better off using the shmem_uint64_wait_until in the put_signal and put_signal_nbi tests.
The text was updated successfully, but these errors were encountered:
I've been seeing these compiler warnings lately when building the
shmemx
tests:It looks like this compiler (
gcc
in Travis's Trusty image) does not have C11 generic support and ends up using the legacy untyped API (with along
1st argument) here.We might be better off using the
shmem_uint64_wait_until
in theput_signal
andput_signal_nbi
tests.The text was updated successfully, but these errors were encountered: