From f3796370259059657048350d22f446f5e5e2525e Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Fri, 18 Oct 2019 17:05:42 -0700 Subject: [PATCH] removed Visual warning for pointer casts --- programs/util.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/programs/util.c b/programs/util.c index c82d04e30..de25bc232 100644 --- a/programs/util.c +++ b/programs/util.c @@ -399,6 +399,11 @@ int UTIL_countPhysicalCores(void) DWORD returnLength = 0; size_t byteOffset = 0; +#ifdef (_MSC_VER) +/* Visual Studio does not like the following cast */ +# pragma warning( disable : 4054 ) /* conversion from function ptr to data ptr */ +# pragma warning( disable : 4055 ) /* conversion from data ptr to function ptr */ +#endif glpi = (LPFN_GLPI)(void*)GetProcAddress(GetModuleHandle(TEXT("kernel32")), "GetLogicalProcessorInformation"); -- 2.47.2