Closed Bug 686558 Opened 9 years ago Closed 9 years ago

Fix nsNetUtil.h warning about "enumeral mismatch"

Categories

(Core :: Networking, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla9

People

(Reporter: jduell.mcbugs, Unassigned)

References

Details

Attachments

(1 file)

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: 9 years ago
Resolution: --- → FIXED
Whiteboard: [inbound]
You need to log in before you can comment on or make changes to this bug.