Bug 13268 - [WARN] shifting a negative signed value is undefined
[WARN] shifting a negative signed value is undefined
Status: NEW
Product: rsync
Classification: Unclassified
Component: core
3.1.3
All All
: P5 normal
: ---
Assigned To: Wayne Davison
Rsync QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-02-13 17:14 UTC by Ben RUBSON
Modified: 2018-02-13 17:14 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben RUBSON 2018-02-13 17:14:34 UTC
Hi,

I'm getting the following warning while compiling with FreeBSD :

--- zlib/inflate.o ---
zlib/inflate.c:1528:61: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
    if (strm == Z_NULL || strm->state == Z_NULL) return -1L << 16;
                                                        ~~~ ^

# cc --version
FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0)
Target: x86_64-unknown-freebsd11.0
Thread model: posix

Thx !

Ben