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.
On Mon, Apr 06, 2009 at 01:25:20PM +0800, ??? wrote:
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 S.
Igor Sysoev
$ gcc -v
Using built-in specs.
Target: i686-pc-cygwin
Configured with: …/gcc44/configure --prefix=/usr/local/gfortran
–enable-langua
ges=c,fortran --disable-bootstrap --enable-threads=posix
–enable-sjlj-exception
s --enable-version-specific-runtime-libs --enable-nls
–disable-libmudflap --dis
able-shared --disable-win32-registry --with-system-zlib
–enable-checking=releas
e --enable-werror --without-included-gettext --without-x
–enable-libgomp
Thread model: posix
gcc version 4.4.0 20090203 (experimental) (GCC)
checking for OS
- CYGWIN_NT-7.0 1.7.0s(0.210/5/3) i686