1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-11-20 10:21:47 +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

@ -903,7 +903,10 @@ void ShowWizard(HWND hWndParent, WIZARD *w, UINT start_id)
h.phpage = (HPROPSHEETPAGE *)pages_array;
h.pszbmHeader = MAKEINTRESOURCEW(w->Bitmap);
h.pszCaption = w->Caption;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
h.pfnCallback = WizardDlgProc;
#pragma clang diagnostic pop
start_page = GetWizardPage(w, start_id);
if (start_page != NULL)
@ -3487,7 +3490,10 @@ HWND SearchWindow(wchar_t *caption)
p.caption = caption;
p.hWndFound = NULL;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
EnumWindows(SearchWindowEnumProc, (LPARAM)&p);
#pragma clang diagnostic pop
return p.hWndFound;
}