Fix nsNetUtil.h warning about "enumeral mismatch"

RESOLVED FIXED in mozilla9

Status

()

Core
Networking
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: jduell, Unassigned)

Tracking

unspecified
mozilla9
x86_64
Linux
Points:
---

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.
(Reporter)

Comment 1

6 years ago
Created attachment 560041 [details] [diff] [review]
get rid of gcc warning
Attachment #560041 - Flags: review?(bzbarsky)

Comment 2

6 years ago
Can we just let bug 585099 take care of this instead?
(Reporter)

Comment 3

6 years ago
Comment on attachment 560041 [details] [diff] [review]
get rid of gcc warning

got verbal +r from bz
Attachment #560041 - Flags: review?(bzbarsky) → review+
(Reporter)

Comment 4

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