mirror of
https://github.com/nginx/nginx.git
synced 2026-06-27 04:12:05 +00:00
Fixed false compiler warning.
Newer gcc versions (4.7+) report possible use of uninitialized variable if nginx is being compiled with -O3.
This commit is contained in:
parent
c6d7db2500
commit
8d97a2e4d7
1 changed files with 4 additions and 0 deletions
|
|
@ -1944,6 +1944,10 @@ ngx_http_set_virtual_server(ngx_http_request_t *r, ngx_str_t *host)
|
|||
ngx_http_core_loc_conf_t *clcf;
|
||||
ngx_http_core_srv_conf_t *cscf;
|
||||
|
||||
#if (NGX_SUPPRESS_WARN)
|
||||
cscf = NULL;
|
||||
#endif
|
||||
|
||||
hc = r->http_connection;
|
||||
|
||||
#if (NGX_HTTP_SSL && defined SSL_CTRL_SET_TLSEXT_HOSTNAME)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue