April 06, 2009 04:08AM
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/
Subject Author Posted

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

Anonymous User April 06, 2009 01:25AM

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

Igor Sysoev April 06, 2009 04:08AM

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

Anonymous User April 06, 2009 05:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 167
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready