[nginx] svn commit: r4425 - trunk/src/http/modules

mdounin at mdounin.ru mdounin at mdounin.ru
Mon Jan 30 13:19:25 UTC 2012


Author: mdounin
Date: 2012-01-30 13:19:25 +0000 (Mon, 30 Jan 2012)
New Revision: 4425

Log:
Limit req: unbreak compilation with MSVC.


Modified:
   trunk/src/http/modules/ngx_http_limit_req_module.c

Modified: trunk/src/http/modules/ngx_http_limit_req_module.c
===================================================================
--- trunk/src/http/modules/ngx_http_limit_req_module.c	2012-01-30 12:53:57 UTC (rev 4424)
+++ trunk/src/http/modules/ngx_http_limit_req_module.c	2012-01-30 13:19:25 UTC (rev 4425)
@@ -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];



More information about the nginx-devel mailing list