ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nginx-0.6.8



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


 




Copyright © Lexa Software, 1996-2009.