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)
Tracking
()
RESOLVED
FIXED
People
(Reporter: dholbert, Assigned: dholbert)
Details
(Whiteboard: [build_warning])
Attachments
(1 file, 1 obsolete file)
805 bytes,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
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
}
Assignee | ||
Comment 1•14 years ago
|
||
Attachment #437342 -
Flags: review?
Assignee | ||
Updated•14 years ago
|
Attachment #437342 -
Flags: review? → review?(benjamin)
Comment 2•14 years ago
|
||
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-
Assignee | ||
Comment 3•14 years ago
|
||
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?
Assignee | ||
Updated•14 years ago
|
Attachment #437894 -
Flags: review? → review?(benjamin)
Updated•14 years ago
|
Attachment #437894 -
Flags: review?(benjamin) → review+
Assignee | ||
Comment 4•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/ed68058029e3
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•14 years ago
|
Whiteboard: [build_warning]
You need to log in
before you can comment on or make changes to this bug.
Description
•