Fix compilation error when using clang-cl 16 or higher
authorAnthony Roberts <anthony.roberts@linaro.org>
Thu, 30 Mar 2023 14:19:53 +0000 (15:19 +0100)
committerPauli <pauli@openssl.org>
Sun, 2 Apr 2023 22:19:43 +0000 (08:19 +1000)
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 <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20654)

crypto/thread/arch/thread_win.c

index 7f44d1f5cfd3ff02c04f5c098f72cc8526d5444c..96f1e81a21ad44fb1e445ea18c148f35883cccaa 100644 (file)
@@ -13,7 +13,7 @@
 # include <process.h>
 # include <windows.h>
 
-static DWORD __stdcall thread_start_thunk(LPVOID vthread)
+static unsigned __stdcall thread_start_thunk(LPVOID vthread)
 {
     CRYPTO_THREAD *thread;
     CRYPTO_THREAD_RETVAL ret;