Bug 13268 - [WARN] shifting a negative signed value is undefined
Summary: [WARN] shifting a negative signed value is undefined
Status: RESOLVED FIXED
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 3.1.3
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-13 17:14 UTC by Ben RUBSON
Modified: 2018-03-26 06:04 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
Comment 1 Wayne Davison 2018-03-26 02:13:10 UTC
I've checked-in a fix for this into git (using the same change that newer zlib versions use).
Comment 2 Ben RUBSON 2018-03-26 06:04:15 UTC
Many thanks Wayne !