From 38a0a4db2fffbebb5f029550266dbf915a399258 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 4 Oct 2013 01:06:42 -0400 Subject: [PATCH] fix invalid implicit pointer conversion in pthread_key_create --- src/thread/pthread_key_create.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thread/pthread_key_create.c b/src/thread/pthread_key_create.c index e51cb023..c29935c1 100644 --- a/src/thread/pthread_key_create.c +++ b/src/thread/pthread_key_create.c @@ -17,7 +17,7 @@ int pthread_key_create(pthread_key_t *k, void (*dtor)(void *)) __pthread_self_init(); if (!dtor) dtor = nodtor; do { - if (!a_cas_p(keys+j, 0, dtor)) { + if (!a_cas_p(keys+j, 0, (void *)dtor)) { *k = j; return 0; } -- 2.25.1