[PATCH] Win32: suppressed sign-compare warnings

Kouhei Sutou kou at cozmixng.org
Sat Oct 11 12:11:30 UTC 2014


Hi,

The attached patch fixes the following warnings:

    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/os/win32/ngx_wsasend_chain.o \
            src/os/win32/ngx_wsasend_chain.c
    src/os/win32/ngx_wsasend_chain.c: In function 'ngx_wsasend_chain':
    src/os/win32/ngx_wsasend_chain.c:37:29: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         if (limit == 0 || limit > NGX_MAX_UINT32_VALUE - ngx_pagesize) {
                                 ^
    src/os/win32/ngx_wsasend_chain.c: In function 'ngx_overlapped_wsasend_chain':
    src/os/win32/ngx_wsasend_chain.c:159:33: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
             if (limit == 0 || limit > NGX_MAX_UINT32_VALUE - ngx_pagesize) {
                                     ^
    cc1: all warnings being treated as errors
    objs/Makefile:673: recipe for target 'objs/src/os/win32/ngx_wsasend_chain.o' failed

This patch is separated from
http://mailman.nginx.org/pipermail/nginx-devel/2014-October/006028.html

It was suggested at
http://mailman.nginx.org/pipermail/nginx-devel/2014-October/006054.html


Thanks,
--
kou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: win32-suppressed-sign-compare-warnings.patch
Type: text/x-patch
Size: 2757 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20141011/9afa28eb/attachment.bin>


More information about the nginx-devel mailing list