Closed
Bug 1202099
Opened 9 years ago
Closed 9 years ago
clang 3.7 build failure in zlib
Categories
(Core :: General, defect)
Core
General
Tracking
()
RESOLVED
FIXED
mozilla43
Tracking | Status | |
---|---|---|
firefox43 | --- | fixed |
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
Details
Attachments
(1 file)
806 bytes,
patch
|
glandium
:
review-
|
Details | Diff | Splinter Review |
I get this when building Firefox with clang 3.7: 4:38.27 /Users/ehsan/moz/src/modules/zlib/src/inflate.c:1507:61: error: shifting a negative signed value is undefined [-Werror,-Wshift-negative-value] 4:38.27 if (strm == Z_NULL || strm->state == Z_NULL) return -1L << 16; 4:38.27 ~~~ ^ 4:38.28 1 error generated. This warning is turned on by -Wall, and we treat warnings as errors, hence the error message. I have upstreamed a patch here: https://github.com/madler/zlib/pull/112
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8657400 -
Flags: review?(mh+mozilla)
Comment 2•9 years ago
|
||
Comment on attachment 8657400 [details] [diff] [review] Fix a clang 3.7 build warning (treated as error) in zlib Review of attachment 8657400 [details] [diff] [review]: ----------------------------------------------------------------- ::: modules/zlib/src/inflate.c @@ +1503,5 @@ > z_streamp strm; > { > struct inflate_state FAR *state; > > + if (strm == Z_NULL || strm->state == Z_NULL) return (unsigned)-1L << 16; This won't return the same value as without the cast on LP64 platforms.
Attachment #8657400 -
Flags: review?(mh+mozilla) → review-
Assignee | ||
Comment 3•9 years ago
|
||
Right... I'm just going to land this commit from upstream: https://github.com/madler/zlib/commit/e54e1299404101a5a9d0cf5e45512b543967f958.patch
https://hg.mozilla.org/mozilla-central/rev/99df11976340
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox43:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
You need to log in
before you can comment on or make changes to this bug.
Description
•