Closed Bug 557559 Opened 14 years ago Closed 14 years ago

nsDebugImpl.cpp: "warning: enumeration value ‘NS_ASSERT_UNINITIALIZED’ not handled in switch"

Categories

(Core :: XPCOM, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dholbert, Assigned: dholbert)

Details

(Whiteboard: [build_warning])

Attachments

(1 file, 1 obsolete file)

Filing bug for this build warning (the only warning for the "xpcom/base/" directory):
{
> xpcom/base/nsDebugImpl.cpp: In function ‘void NS_DebugBreak_P(PRUint32, const char*, const char*, const char*, PRInt32)’:
> xpcom/base/nsDebugImpl.cpp:334: warning: enumeration value ‘NS_ASSERT_UNINITIALIZED’ not handled in switch
}
Attached patch fix (obsolete) — Splinter Review
Attachment #437342 - Flags: review?
Attachment #437342 - Flags: review? → review?(benjamin)
Comment on attachment 437342 [details] [diff] [review]
fix

We should default to trap if there is nothing else set.
Attachment #437342 - Flags: review?(benjamin) → review-
Attached patch fix v2Splinter Review
Ok -- this version groups "NS_ASSERT_UNINITIALIZED" to fall into the "TRAP" case.

Adds a return statement, too, for consistency & foolproofness-against-future-case-statement-rearranging.
Attachment #437342 - Attachment is obsolete: true
Attachment #437894 - Flags: review?
Attachment #437894 - Flags: review? → review?(benjamin)
Attachment #437894 - Flags: review?(benjamin) → review+
http://hg.mozilla.org/mozilla-central/rev/ed68058029e3
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: [build_warning]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: