diff options
author | Vladimir Homutov <vl@nginx.com> | 2014-01-31 14:18:52 +0400 |
---|---|---|
committer | Vladimir Homutov <vl@nginx.com> | 2014-01-31 14:18:52 +0400 |
commit | 8d97a2e4d7ef3fb4890663255f0893fcd047fea2 (patch) | |
tree | a51e1d1c1790887bda101a2583e38bdc5326e6c5 /src/http/ngx_http_request.c | |
parent | c6d7db25000b532c6c8588ff5ed8f83110b0aa82 (diff) | |
download | nginx-8d97a2e4d7ef3fb4890663255f0893fcd047fea2.tar.gz nginx-8d97a2e4d7ef3fb4890663255f0893fcd047fea2.zip |
Fixed false compiler warning.
Newer gcc versions (4.7+) report possible use of uninitialized variable if
nginx is being compiled with -O3.
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r-- | src/http/ngx_http_request.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index a0e6fadb6..0bb1b8cde 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -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) |