c9c87dc958
When compiling atomic-generic.c from the libatomic testsuite, we run into: ... $ gcc src/libatomic/testsuite/libatomic.c/atomic-generic.c -latomic src/libatomic/testsuite/libatomic.c/atomic-generic.c: In function ‘main’: src/libatomic/testsuite/libatomic.c/atomic-generic.c:31:7: warning: \ implicit declaration of function ‘memcmp’ [-Wimplicit-function-declaration] if (memcmp (&a, &zero, size)) ^~~~~~ ... Fix this by adding the missing string.h include. Tested on x86_64. libatomic/ChangeLog: * testsuite/libatomic.c/atomic-generic.c: Include string.h. |
||
---|---|---|
.. | ||
atomic-compare-exchange-1.c | ||
atomic-compare-exchange-2.c | ||
atomic-compare-exchange-3.c | ||
atomic-compare-exchange-4.c | ||
atomic-compare-exchange-5.c | ||
atomic-exchange-1.c | ||
atomic-exchange-2.c | ||
atomic-exchange-3.c | ||
atomic-exchange-4.c | ||
atomic-exchange-5.c | ||
atomic-generic.c | ||
atomic-load-1.c | ||
atomic-load-2.c | ||
atomic-load-3.c | ||
atomic-load-4.c | ||
atomic-load-5.c | ||
atomic-op-1.c | ||
atomic-op-2.c | ||
atomic-op-3.c | ||
atomic-op-4.c | ||
atomic-op-5.c | ||
atomic-store-1.c | ||
atomic-store-2.c | ||
atomic-store-3.c | ||
atomic-store-4.c | ||
atomic-store-5.c | ||
c.exp | ||
generic-2.c |