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 <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20654)
This commit is contained in:
Anthony Roberts 2023-03-30 15:19:53 +01:00 committed by Pauli
parent 9559ad0e8d
commit fae5a15573

View File

@ -13,7 +13,7 @@
# include <process.h> # include <process.h>
# include <windows.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 *thread;
CRYPTO_THREAD_RETVAL ret; CRYPTO_THREAD_RETVAL ret;