v1.9.5: compiler warning

Sergey Kandaurov pluknet at nginx.com
Wed Sep 23 15:31:04 UTC 2015


On Sep 23, 2015, at 1:38 PM, 173279834462 <nginx-forum at nginx.us> wrote:
> inflate.c:1507:61: warning: shifting a negative signed value is undefined
> [-Wshift-negative-value]
>   if (strm == Z_NULL || strm->state == Z_NULL) return -1L << 16;
> 
>         ~~~ ^

Looks like you are building nginx with zlib library sources specified
manually with —-with-zlib option, and that’s an issue in zlib, not nginx.
If such a warning bothers you, you may want to look at this change:
https://github.com/madler/zlib/commit/e54e12

-- 
Sergey Kandaurov



More information about the nginx mailing list