From: Anthony Roberts Date: Thu, 30 Mar 2023 14:19:53 +0000 (+0100) Subject: Fix compilation error when using clang-cl 16 or higher X-Git-Tag: openssl-3.2.0-alpha1~1036 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fae5a15573fb314d0a5bc06f3929fd5ec6ffe5a5;p=thirdparty%2Fopenssl.git Fix compilation error when using clang-cl 16 or higher Fixes a "Incompatible function pointer types" error. In prior versions, this was a warning, but is now an error. CLA: trivial Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/20654) --- diff --git a/crypto/thread/arch/thread_win.c b/crypto/thread/arch/thread_win.c index 7f44d1f5cfd..96f1e81a21a 100644 --- a/crypto/thread/arch/thread_win.c +++ b/crypto/thread/arch/thread_win.c @@ -13,7 +13,7 @@ # include # include -static DWORD __stdcall thread_start_thunk(LPVOID vthread) +static unsigned __stdcall thread_start_thunk(LPVOID vthread) { CRYPTO_THREAD *thread; CRYPTO_THREAD_RETVAL ret;