summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony Roberts <anthony.roberts@linaro.org>2023-03-30 15:19:53 +0100
committerPauli <pauli@openssl.org>2023-04-03 08:19:43 +1000
commitfae5a15573fb314d0a5bc06f3929fd5ec6ffe5a5 (patch)
tree80279395664dbf76e0c8808acdc49787e4451f8c
parent9559ad0e8d433a2a212b63cc848fa2ac82a9b048 (diff)
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)
-rw-r--r--crypto/thread/arch/thread_win.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/thread/arch/thread_win.c b/crypto/thread/arch/thread_win.c
index 7f44d1f5cf..96f1e81a21 100644
--- a/crypto/thread/arch/thread_win.c
+++ b/crypto/thread/arch/thread_win.c
@@ -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;