From 038666db182b5b5a012c795bbad977b7d817c199 Mon Sep 17 00:00:00 2001 From: Robin Eklind Date: Mon, 9 Mar 2020 00:24:52 +0100 Subject: [PATCH] nthread: add parameter name to nthread_handler Fixes the following error when compiling as C with Clang: Source/dthread.cpp:92:46: error: parameter name omitted unsigned int __stdcall dthread_handler(void *) ^ Related to #2017. --- Source/nthread.cpp | 2 +- Source/nthread.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/nthread.cpp b/Source/nthread.cpp index ec5d75bd2..ad7d43b29 100644 --- a/Source/nthread.cpp +++ b/Source/nthread.cpp @@ -173,7 +173,7 @@ void nthread_start(BOOL set_turn_upper_bit) } } -unsigned int __stdcall nthread_handler(void *) +unsigned int __stdcall nthread_handler(void *data) { int delta; BOOL received; diff --git a/Source/nthread.h b/Source/nthread.h index 98b501215..bcd4a1874 100644 --- a/Source/nthread.h +++ b/Source/nthread.h @@ -24,7 +24,7 @@ DWORD nthread_send_and_recv_turn(DWORD cur_turn, int turn_delta); BOOL nthread_recv_turns(BOOL *pfSendAsync); void nthread_set_turn_upper_bit(); void nthread_start(BOOL set_turn_upper_bit); -unsigned int __stdcall nthread_handler(void *); +unsigned int __stdcall nthread_handler(void *data); void nthread_cleanup(); void nthread_ignore_mutex(BOOL bStart); BOOL nthread_has_500ms_passed(BOOL unused);