From 539a8059ef5efc0f47ae70fd434a90ff0fbcab75 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Wed, 12 Sep 2018 08:52:40 +0000 Subject: lib: fix gcc8 warning on Windows Closes https://github.com/curl/curl/pull/2979 --- lib/curl_sspi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/curl_sspi.c') diff --git a/lib/curl_sspi.c b/lib/curl_sspi.c index 11a7120a9..7d1934297 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; -- cgit v1.2.3