# HG changeset patch # User Vladimir Homutov # Date 1391163532 -14400 # Node ID 4d47722d76b2c75cde8fd23633cc4c4f7b1329a6 # Parent 2e40188f83ef5bf1ae5afe0dd445689049f46a5c Fixed false compiler warning. Newer gcc versions (4.7+) report possible use of uninitialized variable if nginx is being compiled with -O3. diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c --- 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_req 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)