diff options
Diffstat (limited to 'gcc/gthr-win32.h')
-rw-r--r-- | gcc/gthr-win32.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/gthr-win32.h b/gcc/gthr-win32.h index a27dccf7126..80b2b71c9e7 100644 --- a/gcc/gthr-win32.h +++ b/gcc/gthr-win32.h @@ -562,7 +562,8 @@ __gthread_once (__gthread_once_t *once, void (*func) (void)) leaks, especially in threaded applications making extensive use of C++ EH. Mingw uses a thread-support DLL to work-around this problem. */ static inline int -__gthread_key_create (__gthread_key_t *key, void (*dtor) (void *)) +__gthread_key_create (__gthread_key_t *key, + void (*dtor) (void *) __attribute__((unused))) { int status = 0; DWORD tls_index = TlsAlloc (); |