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)

x86
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: timeless, Unassigned)

Details

Attachments

(1 file)

this is part of a crusade to get rid of compilation warnings see bug 577899 for the explanation of the patch style
Attached patch patchSplinter Review
Assignee: nobody → timeless
Status: NEW → ASSIGNED
Attachment #496457 - Flags: review?(bienvenu)
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 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
Assignee: mozilla → nobody
->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.

Attachment

General

Creator:
Created:
Updated:
Size: