Parcourir la source

port r14513 from 1.1: Fix warning

Samuel Thibault il y a 10 ans
Parent
commit
4cf9428508
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      include/pthread_win32/pthread.h

+ 1 - 0
include/pthread_win32/pthread.h

@@ -384,6 +384,7 @@ static __inline int pthread_once (pthread_once_t *once, void (*oncefun)(void)) {
 }
 }
 
 
 static __inline int pthread_key_create (pthread_key_t *key, void (*freefun)(void *)) {
 static __inline int pthread_key_create (pthread_key_t *key, void (*freefun)(void *)) {
+  (void)freefun;
   pthread_key_t res;
   pthread_key_t res;
   winPthreadAssertWindows((res = TlsAlloc()) != 0xFFFFFFFF);
   winPthreadAssertWindows((res = TlsAlloc()) != 0xFFFFFFFF);
   *key = res;
   *key = res;