diff options
author | João Valverde <j@v6e.pt> | 2023-01-14 03:49:49 +0000 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2023-01-14 14:52:53 +0000 |
commit | a23bab971ee05e5507822d51bcf2f448879d6a98 (patch) | |
tree | 003224f350e3bf170c26a4dc4635081fcd4e535e /wsutil | |
parent | 6bfeecb562e96c28c7fe40ca371e0ab0be5ff72d (diff) |
MinGW: Disable -Wcast-function-type warnings
Diffstat (limited to 'wsutil')
-rw-r--r-- | wsutil/os_version_info.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/wsutil/os_version_info.c b/wsutil/os_version_info.c index ea727be77a..96185d4602 100644 --- a/wsutil/os_version_info.c +++ b/wsutil/os_version_info.c @@ -208,7 +208,9 @@ get_os_version_info(GString *str) HMODULE ntdll_module = LoadLibrary(_T("ntdll.dll")); if (ntdll_module) { +DIAG_OFF(cast-function-type) RtlGetVersionP = (RtlGetVersionProc) GetProcAddress(ntdll_module, "RtlGetVersion"); +DIAG_ON(cast-function-type) } if (RtlGetVersionP) { |