nginx-0.6.8

Igor Sysoev is at rambler-co.ru
Mon Aug 20 19:54:14 MSD 2007


On Mon, Aug 20, 2007 at 07:20:34PM +0400, proforg wrote:

> Ошибка при сборке. 0.6.7 собирается нормально.
> 
> gcc -c -O -pipe -march=opteron -O -W -Wall -Wpointer-arith -Wno- 
> unused-parameter -Wno-unused-function -Wunused-variable -Wunused- 
> value -Werror -g  -I src/core -I src/event -I src/event/modules -I  
> src/os/unix -I objs -I src/http -I src/http/modules \
>                 -o objs/src/http/ngx_http_write_filter_module.o \
>                 src/http/ngx_http_write_filter_module.c
> cc1: warnings being treated as errors
> src/http/ngx_http_write_filter_module.c: In function  
> 'ngx_http_write_filter':
> src/http/ngx_http_write_filter_module.c:254: warning: comparison  
> between signed and unsigned
> make[1]: *** [objs/src/http/ngx_http_write_filter_module.o] Ошибка 1
> make[1]: Leaving directory `/usr/local/src/nginx-0.6.8'
> make: *** [build] Ошибка 2

Патч.


-- 
Игорь Сысоев
http://sysoev.ru
-------------- next part --------------
Index: src/http/ngx_http_write_filter_module.c
===================================================================
--- src/http/ngx_http_write_filter_module.c	(revision 731)
+++ src/http/ngx_http_write_filter_module.c	(working copy)
@@ -251,7 +251,8 @@
 
     } else if (c->write->ready
                && clcf->sendfile_max_chunk
-               && c->sent - sent >= clcf->sendfile_max_chunk - 2 * ngx_pagesize)
+               && (size_t) (c->sent - sent)
+                                >= clcf->sendfile_max_chunk - 2 * ngx_pagesize)
     {
         c->write->delayed = 1;
         ngx_add_timer(c->write, 1);


More information about the nginx-ru mailing list