Mercurial > hg > nginx
changeset 4424:aacd7356c197
Limit req: unbreak compilation with MSVC.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 30 Jan 2012 13:19:25 +0000 |
parents | 196c3dacff0d |
children | da3e1be1915a |
files | src/http/modules/ngx_http_limit_req_module.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_limit_req_module.c Mon Jan 30 12:53:57 2012 +0000 +++ b/src/http/modules/ngx_http_limit_req_module.c Mon Jan 30 13:19:25 2012 +0000 @@ -166,6 +166,10 @@ rc = NGX_DECLINED; +#if (NGX_SUPPRESS_WARN) + limit = NULL; +#endif + for (n = 0; n < lrcf->limits.nelts; n++) { limit = &limits[n];