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
2 years ago
239 | 239 | goto nopoll; |
240 | 240 | } |
241 | 241 | |
242 | WSAPoll = (ngx_wsapoll_pt) GetProcAddress(hmod, "WSAPoll"); | |
242 | WSAPoll = (ngx_wsapoll_pt) (void *) GetProcAddress(hmod, "WSAPoll"); | |
243 | 243 | if (WSAPoll == NULL) { |
244 | 244 | ngx_log_error(NGX_LOG_NOTICE, log, ngx_errno, |
245 | 245 | "GetProcAddress(\"WSAPoll\") failed"); |