From: Yann Collet Date: Fri, 18 Oct 2019 22:45:31 +0000 (-0700) Subject: fix function cast warning on Windows with gcc9 X-Git-Tag: v1.4.4~1^2~23^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bd6c15b6bdff3265b37e6bbba8bcc5d8fff0e0a;p=thirdparty%2Fzstd.git fix function cast warning on Windows with gcc9 --- diff --git a/programs/util.c b/programs/util.c index 2249e4513..c82d04e30 100644 --- a/programs/util.c +++ b/programs/util.c @@ -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;