瀏覽代碼

port r14513 from 1.1: Fix warning

Samuel Thibault 10 年之前
父節點
當前提交
4cf9428508
共有 1 個文件被更改,包括 1 次插入0 次删除
  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 *)) {
+  (void)freefun;
   pthread_key_t res;
   winPthreadAssertWindows((res = TlsAlloc()) != 0xFFFFFFFF);
   *key = res;