mirror of
https://github.com/nginx/nginx.git
synced 2026-10-21 19:41:35 +00:00
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.
This commit is contained in:
parent
9aa906a684
commit
2393e25acb
1 changed files with 1 additions and 1 deletions
|
|
@ -240,7 +240,7 @@ ngx_os_init(ngx_log_t *log)
|
|||
goto nopoll;
|
||||
}
|
||||
|
||||
WSAPoll = (ngx_wsapoll_pt) GetProcAddress(hmod, "WSAPoll");
|
||||
WSAPoll = (ngx_wsapoll_pt) (void *) GetProcAddress(hmod, "WSAPoll");
|
||||
if (WSAPoll == NULL) {
|
||||
ngx_log_error(NGX_LOG_NOTICE, log, ngx_errno,
|
||||
"GetProcAddress(\"WSAPoll\") failed");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue