nsZipHeader.cpp:136:37 [-Wbitwise-op-parentheses] '&' within '|'

RESOLVED FIXED in Firefox 27

Status

()

defect
--
minor
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: cpeterson, Assigned: cpeterson)

Tracking

(Blocks 1 bug, {regression})

unspecified
mozilla27
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox26 unaffected, firefox27 fixed)

Details

(Whiteboard: [qa-])

Attachments

(1 attachment)

The following clang compiler warning is a regression from bug 921227. The current code is correct, but clang is warning that the bitwise & operator has a higher precedence than the bitwise | operator.

modules/libjar/zipwriter/src/nsZipHeader.cpp:136:37 [-Wbitwise-op-parentheses] '&' within '|'
Attachment #816729 - Flags: review?(taras.mozilla)
Comment on attachment 816729 [details] [diff] [review]
fix-nsZipHeader-warning.patch

Review of attachment 816729 [details] [diff] [review]:
-----------------------------------------------------------------

I'll let Mossop verify this
Attachment #816729 - Flags: review?(taras.mozilla) → review?(dtownsend+bugmail)
Comment on attachment 816729 [details] [diff] [review]
fix-nsZipHeader-warning.patch

Review of attachment 816729 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good, sorry about that.
Attachment #816729 - Flags: review?(dtownsend+bugmail) → review+
https://hg.mozilla.org/mozilla-central/rev/2140cb2f2fcd
Assignee: nobody → cpeterson
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.