[PATCH] Win32: make buildable with MinGW-w64 gcc

Kouhei Sutou kou at cozmixng.org
Sat Oct 17 12:44:32 UTC 2015


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,
--
kou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nginx-win32-make-buildable-with-mingw-w64-gcc.patch
Type: text/x-patch
Size: 1434 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20151017/7e729de4/attachment.bin>


More information about the nginx-devel mailing list