diff options
Diffstat (limited to 'sysdeps/pthread/tst-key2.c')
-rw-r--r-- | sysdeps/pthread/tst-key2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/pthread/tst-key2.c b/sysdeps/pthread/tst-key2.c index 6828873e41..28ba547073 100644 --- a/sysdeps/pthread/tst-key2.c +++ b/sysdeps/pthread/tst-key2.c @@ -56,7 +56,8 @@ tf (void *arg) { pthread_key_t *key = (pthread_key_t *) arg; - if (pthread_setspecific (*key, (void *) -1l) != 0) + /* Use an arbirary but valid pointer to avoid GCC warnings. */ + if (pthread_setspecific (*key, arg) != 0) { write_message ("setspecific failed\n"); _exit (1); |