Klaus Demo nginx / 2393e25
Win32: silenced -Wcast-function-type GCC warning (ticket #1865). With MinGW-w64, building 64-bit nginx binary with GCC 8 and above results in warning due to cast of GetProcAddress() result to ngx_wsapoll_pt, which GCC thinks is incorrect. Added intermediate cast to "void *" to silence the warning. Maxim Dounin 23 days ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
239239 goto nopoll;
240240 }
241241
242 WSAPoll = (ngx_wsapoll_pt) GetProcAddress(hmod, "WSAPoll");
242 WSAPoll = (ngx_wsapoll_pt) (void *) GetProcAddress(hmod, "WSAPoll");
243243 if (WSAPoll == NULL) {
244244 ngx_log_error(NGX_LOG_NOTICE, log, ngx_errno,
245245 "GetProcAddress(\"WSAPoll\") failed");