[PATCH] Win32: make buildable with MinGW-w64 gcc
Maxim Dounin
mdounin at mdounin.ru
Mon Oct 19 20:54:35 UTC 2015
Hello!
On Sat, Oct 17, 2015 at 09:44:32PM +0900, Kouhei Sutou wrote:
> Hi,
>
> The attached patch fixes the following warning:
>
> x86_64-w64-mingw32-gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/win32 -I objs \
> -o objs/src/core/ngx_connection.o \
> src/core/ngx_connection.c
> src/core/ngx_connection.c: In function 'ngx_close_idle_connections':
> src/core/ngx_connection.c:1178:21: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
> if (c[i].fd != -1 && c[i].idle) {
> ^
> cc1: all warnings being treated as errors
[...]
Thanks, and this manifests itself with MinGW gcc as well.
Committed with some changes to commit log:
http://hg.nginx.org/nginx/rev/954b67727af3
--
Maxim Dounin
http://nginx.org/
More information about the nginx-devel
mailing list