]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fix function cast warning on Windows with gcc9
authorYann Collet <cyan@fb.com>
Fri, 18 Oct 2019 22:45:31 +0000 (15:45 -0700)
committerYann Collet <cyan@fb.com>
Fri, 18 Oct 2019 22:45:57 +0000 (15:45 -0700)
programs/util.c

index 2249e45130dd7abec814d1414d16b704427bf9f1..c82d04e30182ff316c9b91df535a147f6ee11d37 100644 (file)
@@ -399,8 +399,8 @@ int UTIL_countPhysicalCores(void)
         DWORD returnLength = 0;
         size_t byteOffset = 0;
 
-        glpi = (LPFN_GLPI)GetProcAddress(GetModuleHandle(TEXT("kernel32")),
-                                         "GetLogicalProcessorInformation");
+        glpi = (LPFN_GLPI)(void*)GetProcAddress(GetModuleHandle(TEXT("kernel32")),
+                                               "GetLogicalProcessorInformation");
 
         if (glpi == NULL) {
             goto failed;