Cygwin/GCC nginx-0.7.47 error: array subscript is above array bounds

Igor Sysoev is at rambler-co.ru
Mon Apr 6 12:08:22 MSD 2009


On Mon, Apr 06, 2009 at 01:25:20PM +0800, ?????? wrote:

> 
> gcc -c -O -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wno-unused-function -Wunused-variable -Wunused-value -Werror -D FD_SETSIZE=9999999 -O5 -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_file_cache.o \
>                 src/http/ngx_http_file_cache.c
> cc1: warnings being treated as errors
> src/http/ngx_http_file_cache.c: In function 'ngx_http_file_cache_set_slot':
> src/http/ngx_http_file_cache.c:1368: error: array subscript is above array bounds
> src/http/ngx_http_file_cache.c:1369: error: array subscript is above array bounds
> make[1]: *** [objs/src/http/ngx_http_file_cache.o] Error 1
> 
>  
> 
> Under Cygwin 1.7.0 & GCC 4.4, nginx version is 0.7.47.
> 
> nginx 0.7.46 has the same errors.

Thank you, GCC 4.4 is really cleaver thing.

What GCC version do you use ?

I have tried old enough built:
gcc version 4.4.0 20080627 (experimental) (GCC)
and it did not show this error.


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list