Fix nsNetUtil.h warning about "enumeral mismatch"

RESOLVED FIXED in mozilla9

Status

()

defect
RESOLVED FIXED
8 years ago
8 years ago

People

(Reporter: jduell.mcbugs, Unassigned)

Tracking

unspecified
mozilla9
x86_64
Linux
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

The fix for bug 272541 makes gcc spit out a warning about 

nsNetUtil.h:1951:32: warning: enumeral mismatch in conditional expression: ‘nsIChannel::<anonymous enum>’ vs ‘nsIChannel::<anonymous enum>

Not sure why gcc objects to the tertiary operator being used here, yet "if..else" works ok, but it does.
Attachment #560041 - Flags: review?(bzbarsky)
Can we just let bug 585099 take care of this instead?
Comment on attachment 560041 [details] [diff] [review]
get rid of gcc warning

got verbal +r from bz
Attachment #560041 - Flags: review?(bzbarsky) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/52418d4fe38b
Whiteboard: [inbound]
Target Milestone: --- → mozilla9
https://hg.mozilla.org/mozilla-central/rev/52418d4fe38b
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Whiteboard: [inbound]
You need to log in before you can comment on or make changes to this bug.