@@ -93,7 +93,7 @@ static __inline void emutls_setspecific(emutls_address_array *value) {
93
93
pthread_setspecific (emutls_pthread_key , (void * )value );
94
94
}
95
95
96
- static __inline emutls_address_array * emutls_getspecific () {
96
+ static __inline emutls_address_array * emutls_getspecific (void ) {
97
97
return (emutls_address_array * )pthread_getspecific (emutls_pthread_key );
98
98
}
99
99
@@ -125,9 +125,9 @@ static __inline void emutls_init_once(void) {
125
125
pthread_once (& once , emutls_init );
126
126
}
127
127
128
- static __inline void emutls_lock () { pthread_mutex_lock (& emutls_mutex ); }
128
+ static __inline void emutls_lock (void ) { pthread_mutex_lock (& emutls_mutex ); }
129
129
130
- static __inline void emutls_unlock () { pthread_mutex_unlock (& emutls_mutex ); }
130
+ static __inline void emutls_unlock (void ) { pthread_mutex_unlock (& emutls_mutex ); }
131
131
132
132
#else // _WIN32
133
133
@@ -209,16 +209,16 @@ static __inline void emutls_init_once(void) {
209
209
InitOnceExecuteOnce (& once , emutls_init , NULL , NULL );
210
210
}
211
211
212
- static __inline void emutls_lock () { EnterCriticalSection (emutls_mutex ); }
212
+ static __inline void emutls_lock (void ) { EnterCriticalSection (emutls_mutex ); }
213
213
214
- static __inline void emutls_unlock () { LeaveCriticalSection (emutls_mutex ); }
214
+ static __inline void emutls_unlock (void ) { LeaveCriticalSection (emutls_mutex ); }
215
215
216
216
static __inline void emutls_setspecific (emutls_address_array * value ) {
217
217
if (TlsSetValue (emutls_tls_index , (LPVOID )value ) == 0 )
218
218
win_abort (GetLastError (), "TlsSetValue" );
219
219
}
220
220
221
- static __inline emutls_address_array * emutls_getspecific () {
221
+ static __inline emutls_address_array * emutls_getspecific (void ) {
222
222
LPVOID value = TlsGetValue (emutls_tls_index );
223
223
if (value == NULL ) {
224
224
const DWORD err = GetLastError ();
0 commit comments