From: Maxim Dounin Date: Mon, 30 Jan 2012 13:19:25 +0000 (+0000) Subject: Limit req: unbreak compilation with MSVC. X-Git-Tag: release-1.1.14~2 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=11cc9dac449a88ab0c5b846ae1a1105e50dde354;p=nginx.git Limit req: unbreak compilation with MSVC. --- diff --git a/src/http/modules/ngx_http_limit_req_module.c b/src/http/modules/ngx_http_limit_req_module.c index d2293841b..e4d90a98f 100644 --- a/src/http/modules/ngx_http_limit_req_module.c +++ b/src/http/modules/ngx_http_limit_req_module.c @@ -166,6 +166,10 @@ ngx_http_limit_req_handler(ngx_http_request_t *r) rc = NGX_DECLINED; +#if (NGX_SUPPRESS_WARN) + limit = NULL; +#endif + for (n = 0; n < lrcf->limits.nelts; n++) { limit = &limits[n];