Closed
Bug 617880
Opened 15 years ago
Closed 13 years ago
mark DEBUG only variables as ifdef DEBUG in mailnews
Categories
(MailNews Core :: Backend, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: timeless, Unassigned)
Details
Attachments
(1 file)
|
5.99 KB,
patch
|
Bienvenu
:
review-
|
Details | Diff | Splinter Review |
this is part of a crusade to get rid of compilation warnings
see bug 577899 for the explanation of the patch style
Comment 2•15 years ago
|
||
Comment on attachment 496457 [details] [diff] [review]
patch
For me, this really reduces the readability of the code. I suspect most of these warnings would be fixed by handling the errors better, perhaps even logging them appropriately.
Comment 3•15 years ago
|
||
Comment on attachment 496457 [details] [diff] [review]
patch
per previous comment, I'd like to have the warnings around so that we can deal with the underlying issues...
Attachment #496457 -
Flags: review?(bienvenu) → review-
well, i'm not going to do this. i'm starting to clean out my bug list.
Assignee: timeless → bienvenu
Status: ASSIGNED → NEW
OS: Mac OS X → Windows 7
Updated•13 years ago
|
Assignee: mozilla → nobody
Comment 5•13 years ago
|
||
->WONTFIX as such, per previous comments.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WONTFIX
The patch even is strange:
if (!m_incomingServer) {
// ignore the error (and return null), but it's still bad so assert
- nsresult rv = createIncomingServer();
+#ifdef DEBUG
+ nsresult rv =
+#endif
+ createIncomingServer();
NS_WARN_IF_FALSE(NS_SUCCEEDED(rv), "couldn't lazily create the server\n");
}
Do constructs like this even compile when rv is undefined in non-DEBUG case?
You need to log in
before you can comment on or make changes to this bug.
Description
•