1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-07-07 08:14:58 +03:00

temporarily suppress clang warnings on "-Wincompatible-function-pointer-types"

This commit is contained in:
Ilya Shipitsin
2023-09-16 00:03:03 +02:00
parent 1be55ebb94
commit f736d18267
4 changed files with 18 additions and 0 deletions

View File

@ -2846,7 +2846,10 @@ bool Win32InitThread(THREAD *t)
// Thread creation
t->pData = w;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
hThread = (HANDLE)_beginthreadex(NULL, 0, Win32DefaultThreadProc, info, 0, &thread_id);
#pragma clang diagnostic pop
if (hThread == NULL)
{
// Thread creation failure