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];