From 78483c6fcff09f2499919600471c65cf5a2cfe34 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 14 Aug 2023 16:42:35 +0300 Subject: [PATCH] Suppress MSVC warning C4191. --- src/libs/vmisc/theme/vtheme.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libs/vmisc/theme/vtheme.cpp b/src/libs/vmisc/theme/vtheme.cpp index 0f940e8b8..acc1b0c5f 100644 --- a/src/libs/vmisc/theme/vtheme.cpp +++ b/src/libs/vmisc/theme/vtheme.cpp @@ -91,9 +91,14 @@ bool GetTrueWindowsVersion(RTL_OSVERSIONINFOW &osVersionInfo) // Successfully loaded? if (hNTdllDll != nullptr) { + QT_WARNING_PUSH + QT_WARNING_DISABLE_MSVC(4191) + // Get the function pointer to RtlGetVersion pRtlGetVersion = reinterpret_cast(GetProcAddress(hNTdllDll, "RtlGetVersion")); + QT_WARNING_POP + // If successful then read the function if (pRtlGetVersion != nullptr) {