From: Viktor Szakats Date: Wed, 12 Sep 2018 08:52:40 +0000 (+0000) Subject: lib: fix gcc8 warning on Windows X-Git-Tag: curl-7_62_0~196 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=539a8059ef5efc0f47ae70fd434a90ff0fbcab75;p=thirdparty%2Fcurl.git lib: fix gcc8 warning on Windows Closes https://github.com/curl/curl/pull/2979 --- diff --git a/lib/curl_sspi.c b/lib/curl_sspi.c index 11a7120a9f..7d19342977 100644 --- a/lib/curl_sspi.c +++ b/lib/curl_sspi.c @@ -90,8 +90,9 @@ CURLcode Curl_sspi_global_init(void) return CURLE_FAILED_INIT; /* Get address of the InitSecurityInterfaceA function from the SSPI dll */ - pInitSecurityInterface = (INITSECURITYINTERFACE_FN) - GetProcAddress(s_hSecDll, SECURITYENTRYPOINT); + pInitSecurityInterface = + CURLX_FUNCTION_CAST(INITSECURITYINTERFACE_FN, + (GetProcAddress(s_hSecDll, SECURITYENTRYPOINT))); if(!pInitSecurityInterface) return CURLE_FAILED_INIT;