Closed Bug 90906 Opened 24 years ago Closed 10 years ago

Fix all "Unused variable '[...]'" 'Build Warnings' (Part 1/2: "with no function call")

Categories

(SeaMonkey :: Build Config, defect)

defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: pete, Assigned: sgautherie)

References

(Blocks 1 open bug)

Details

(Whiteboard: [build_warning][Leave open until there is no more such warnings in tinderbox: wait for bug 228780 to better see])

Attachments

(13 files, 19 obsolete files)

2.16 KB, patch
dbradley
: review+
Henry.Jia
: superreview+
Details | Diff | Splinter Review
2.19 KB, patch
dbaron
: review+
dbaron
: superreview+
Details | Diff | Splinter Review
2.39 KB, patch
neil
: review+
sspitzer
: superreview+
Details | Diff | Splinter Review
1.02 KB, patch
bryner
: review+
blizzard
: superreview+
Details | Diff | Splinter Review
1.39 KB, patch
adamlock
: review+
Details | Diff | Splinter Review
1.01 KB, patch
roc
: review+
Details | Diff | Splinter Review
5.49 KB, patch
benjamin
: review+
dveditz
: superreview+
Details | Diff | Splinter Review
5.40 KB, patch
Details | Diff | Splinter Review
2.16 KB, patch
neil
: review+
Bienvenu
: superreview+
Details | Diff | Splinter Review
723 bytes, patch
neil
: review+
Details | Diff | Splinter Review
783 bytes, patch
leaf
: review+
Details | Diff | Splinter Review
651 bytes, patch
wtc
: review+
Details | Diff | Splinter Review
5.67 KB, patch
sgautherie
: review+
dmosedale
: superreview+
Details | Diff | Splinter Review
I am going to go and fix all of the "unused variable" compiler warnings i see when building mozilla. We all want to have prestine compiler output when building mozilla, so this is a step to help get there. Feel free to change component, i set xpcom for lack of a better place to put this bug. Assigning to myself. Thanks --pete
Summary: Go through all modules and remove "unused variable" → Go through all modules and remove "unused variable"
Assigning to myself . . .
Attached patch (Av1) </xpcom/*> (obsolete) — — Splinter Review
Attached patch (Bv1) </content/*> (obsolete) — — Splinter Review
I'm concerned about the content patch in "nsHTMLInputElement.cpp" Are you sure the fix there isn't to just check the return value?
Yea, thanks for catching that Cathy. I beleive whoever authored that method, probably menant to return if it fails. Updating patch. --pete
Attached patch (Bv1b) </content/*> (obsolete) — — Splinter Review
the patch for xpcom is incomplete. On Mac, I see these unused variables as well: http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/xpcom/typelib/xpidl/ xpidl_java.c&mark=565#555 http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/xpcom/typelib/xpidl/ xpidl_idl.c&mark=314#304
Status: UNCONFIRMED → NEW
Ever confirmed: true
also in xpcom, I see these in the logs on tinderbox: http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/xpcom/tests/ nsIFileEnumerator.cpp&mark=19#9 http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/xpcom/io/ nsAppFileLocationProvider.cpp&mark=326#316 and these in content: http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/content/xbl/src/ nsXBLBinding.cpp&mark=92#82 http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/content/base/src/ nsStyleContext.cpp&mark=120#110
Status: NEW → ASSIGNED
Attached patch (Cv1) </layout/*> (obsolete) — — Splinter Review
Attached patch (Dv1) </editor/*> (obsolete) — — Splinter Review
Attached patch (Ev1) </xpfe/*> (obsolete) — — Splinter Review
Attached patch (Fv1) </rdf/*> (obsolete) — — Splinter Review
Attached patch (Gv1) </mailnews/*> (obsolete) — — Splinter Review
Attached patch (Av1b) </xpcom/*> (obsolete) — — Splinter Review
Hardware: Other → All
Target Milestone: --- → mozilla0.9.4
Priority: -- → P3
Target Milestone: mozilla0.9.4 → mozilla0.9.5
pushing back
Target Milestone: mozilla0.9.5 → mozilla0.9.7
pushing back
Target Milestone: mozilla0.9.7 → mozilla0.9.9
Target Milestone: mozilla0.9.9 → Future
Updating: *(C) XPCOM -> Browser-General *(OS) other -> All
Component: XPCOM → Browser-General
OS: other → All
Attachment #42357 - Attachment description: patch for content → (Bv1) </content/*>
Attachment #42357 - Attachment is obsolete: true
Attachment #42510 - Attachment description: updated patch for content module → (Bv1b) </content/*>
Attachment #42355 - Attachment description: patch for xpcom → (Av1) </xpcom/*>
Attachment #42355 - Attachment is obsolete: true
Attachment #42673 - Attachment description: patch xpcom updated → (Av1b) </xpcom/*>
Attached patch (Hv1) "Unused variable `[...]'" (obsolete) — — Splinter Review
Let's process this 2003-12-14 (H) patch; then I'll check the 2001-07-1x (A-G) patchs, to see if there are fixes to retrieve from them, before marking them as 'obsolete'... ***** Hv1 patch also does 2 little code rewrites; and removes 3 |#ifdef notdef| blocks. Advise needed: *<nsCommandHandler.cpp>: remove |#include "nsWebBrowser.h"| too ??
Comment on attachment 137382 [details] [diff] [review] (Hv1) "Unused variable `[...]'" 'r=?': (see comment 18) Can you (super-)review, compile, test, check it in ?
Attachment #137382 - Flags: superreview?(brendan)
Attachment #137382 - Flags: review?(neil.parkwaycc.co.uk)
I'm posting patches based on <http://tinderbox.mozilla.org/showbuilds.cgi?tree=SeaMonkey> 'Linux brad Clbr', "Warn:____" link.
Summary: Go through all modules and remove "unused variable" → Fix all "Unused variable" 'Build Warnings.
Well, it seems that quite a number of more recent patchs were already around: Nevertheless, I stand by what I wrote in comment 18: "Hv1 patch first ...".
Summary: Fix all "Unused variable" 'Build Warnings. → Fix all "Unused variable '[...]'" 'Build Warnings'.
No longer depends on: 211429
Blocks: 228464
No longer blocks: 228464
Blocks: buildwarning
Serge, please ask for individual module owners and peers to review their own patches. I'm not your compile, test, and check-in slave, either. Ideally, owners will check in good patches you submit. If you can't get an owner to respond, let me know. /be
Comment on attachment 137382 [details] [diff] [review] (Hv1) "Unused variable `[...]'" Re comment 22: I'll split this global patch back to individual "modules". As for compile/++, I'm not looking for any slave: I only happen to have no compilation environment; so I'm simply asking for help there: I hope the rewievers (or anyone) will be able to do it "for me"...
Attachment #137382 - Attachment is obsolete: true
Attachment #137382 - Flags: superreview?(brendan)
Attachment #137382 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #42673 - Attachment is obsolete: true
Comment on attachment 137533 [details] [diff] [review] (Av1c) </xpcom/*> [Checked in: Comment 83] 'r=?': (see comment 23)
Attachment #137533 - Flags: review?(dougt)
Comment on attachment 42510 [details] [diff] [review] (Bv1b) </content/*> Obsoleting: nothing left to fix :->
Attachment #42510 - Attachment is obsolete: true
Attachment #42608 - Attachment description: patch for layout → (Bv1) </layout/*>
Attachment #42608 - Attachment is obsolete: true
Attachment #42608 - Attachment description: (Bv1) </layout/*> → (Cv1) </layout/*>
Comment on attachment 137539 [details] [diff] [review] (Cv1b) </layout/*> [Checked in: Comment 73] 'r=?': (see comment 23)
Attachment #137539 - Flags: review?(dbaron)
Comment on attachment 42611 [details] [diff] [review] (Dv1) </editor/*> Obsoleting: nothing left to fix :->
Attachment #42611 - Attachment description: patch for editor module → (Dv1) </editor/*>
Attachment #42611 - Attachment is obsolete: true
Comment on attachment 42647 [details] [diff] [review] (Ev1) </xpfe/*> Obsoleting: nothing left to fix :->
Attachment #42647 - Attachment description: patch for xpfe → (Ev1) </xpfe/*>
Attachment #42647 - Attachment is obsolete: true
Comment on attachment 42649 [details] [diff] [review] (Fv1) </rdf/*> Obsoleting: nothing left to fix :->
Attachment #42649 - Attachment description: patch for rdf → (Fv1) </rdf/*>
Attachment #42649 - Attachment is obsolete: true
Attachment #42657 - Attachment description: patch for mailnews → (Gv1) </mailnews/*>
Attachment #42657 - Attachment is obsolete: true
Comment on attachment 137544 [details] [diff] [review] (Gv1b) </mailnews/*> [Checked in: Comment 80] 'r=?': (see comment 23)
Attachment #137544 - Flags: review?(sspitzer)
Attached patch (Iv1) </xpinstall/*> (obsolete) — — Splinter Review
Comment on attachment 137545 [details] [diff] [review] (Iv1) </xpinstall/*> 'r=?': (see comment 23) Note: "review requestee: dveditz#cruzio.com did not match anything"; <http://www.mozilla.org/owners.html> needs update to 'dveditz+bmo#cruzio.com' !
Attachment #137545 - Flags: review?(dveditz+bmo)
Comment on attachment 137539 [details] [diff] [review] (Cv1b) </layout/*> [Checked in: Comment 73] 'approval1.6=?': Trivial unused code removal. (if not too late)
Attachment #137539 - Flags: approval1.6?
Attached patch (Jv1) </security/*> (obsolete) — — Splinter Review
Comment on attachment 137547 [details] [diff] [review] (Jv1) </security/*> Removes 2 |#ifdef notdef| blocks too. 'r=?': (see comment 23)
Attachment #137547 - Flags: review?(kaie)
Attached patch (Kv1) </netwerk/*> (obsolete) — — Splinter Review
Comment on attachment 137548 [details] [diff] [review] (Kv1) </netwerk/*> 'r=?': (see comment 23)
Attachment #137548 - Flags: review?(darin)
Comment on attachment 137549 [details] [diff] [review] (Lv1) </widget/src/mac/*> (cleanup only) [Checked in: Comment 78] (not this bug, but related to "(Jv1) </security/*>" cleanup) Removes 1 |#ifdef notdef| blocks. 'r=?': (see comment 23)
Attachment #137549 - Flags: review?(bryner)
Comment on attachment 137550 [details] [diff] [review] (Mv1) </embedding/*> [Checked in: Comment 74] Advise needed: Is |#include "nsWebBrowser.h"| removable now ?? 'r=?': (see comment 23)
Attachment #137550 - Flags: review?(locka)
Comment on attachment 137551 [details] [diff] [review] (Nv1) </modules/libutil/*> [Checked in: Comment 72] (Chose you, as you r/sr the last patch to this file.) 'r=?': (see comment 23) Note: "review requestee: roc+#cs.cmu.edu did not match anything"; <http://www.mozilla.org/owners.html> needs update to 'roc#ocallahan.org' !
Attachment #137551 - Flags: review?(roc)
Reassigning from 'petejc#optonline.net' to me :-> (since last post was 2001-12-15: thanks anyway !) Updating: *(P) P3 -> -- *(S) normal -> trivial *(TM) Future -> mozilla1.7alpha
Assignee: petejc → gautheri
Severity: normal → trivial
Status: ASSIGNED → NEW
Priority: P3 → --
Summary: Fix all "Unused variable '[...]'" 'Build Warnings'. → Fix all "Unused variable '[...]'" 'Build Warnings' (Part 1: "with no function call")
Target Milestone: Future → mozilla1.7alpha
Status: NEW → ASSIGNED
Attached patch (Iv1b) </xpinstall/*> (obsolete) — — Splinter Review
Patch Iv1, plus 2 unneeded initialization removals.
Comment on attachment 137553 [details] [diff] [review] (Iv1b) </xpinstall/*> 'r=?': (see comment 23)
Attachment #137553 - Flags: review?(dveditz+bmo)
Attachment #137545 - Attachment is obsolete: true
Attachment #137545 - Flags: review?(dveditz+bmo)
Attachment #137553 - Flags: superreview?(dveditz+bmo)
Attachment #137553 - Flags: review?(dveditz+bmo)
Attachment #137553 - Flags: review+
No longer depends on: 223729
*** Bug 223729 has been marked as a duplicate of this bug. ***
No longer depends on: 221132
*** Bug 221132 has been marked as a duplicate of this bug. ***
No longer depends on: 219982
No longer depends on: 221128
No longer depends on: 214199
please do things the way i did them.
{ (result of a private email) 550 5.1.1 <timeless#bemail.org>... User unknown Reporting-MTA: dns; mailrecv3.bigmailbox.com Received-From-MTA: DNS; nan-smtp-13.noos.net Arrival-Date: Wed, 17 Dec 2003 05:49:00 -0800 Final-Recipient: RFC822; timeless#bemail.org X-Actual-Recipient: RFC822; timeless#mailrecv3.bigmailbox.com Action: failed Status: 5.1.1 Diagnostic-Code: X-Unix; 67 Last-Attempt-Date: Wed, 17 Dec 2003 05:49:07 -0800 } > please do things the way i did them. I will: let me first ask you why you did it your way (for my learning process). <http://bugzilla.mozilla.org/show_bug.cgi?id=221132> What is the use of the (3-4) |#ifdef notdef| blocks ? <http://bugzilla.mozilla.org/show_bug.cgi?id=223729> Does not the localization inside the |do{...}| makes repetitive (de)allocations ? Thanks.
Summary: Fix all "Unused variable '[...]'" 'Build Warnings' (Part 1: "with no function call") → Fix all "Unused variable '[...]'" 'Build Warnings' (Part 1/2: "with no function call")
if the compiler really sucks then it might do something silly with the loop, but... local variables aren't allocated in memory the way that things are when you do |malloc| or |new|. by telling the compiler that you're only using a variable in some block, it is more likely to be able to reuse the address it gives to the variable outside the block (a sucky compiler might not, but...). for one, that code is not ours, nss has reasons for doing things, it isn't for us to remove stuff from their code. it's true that you can rely on cvs to find the code, but it's a royal pain. let me tell you, as i had to use it to answer all the other questions you asked me yesterday. you can contact me on irc or by using the realname field. (normally you can copy that, but i'm traveling so you would have to remove that at the moment.)
Blocks: 217089
No longer blocks: buildwarning
Patch Iv1b, plus a few variable localizations.
Comment on attachment 137586 [details] [diff] [review] (Iv1c) </xpinstall/*> [Checked in: Comment 71] 'r=?': (see comment 23)
Attachment #137586 - Attachment description: (Iv1c) </xpinstall/*>, with no function call → (Iv1c) </xpinstall/*>
Attachment #137586 - Flags: superreview?(dveditz+bmo)
Attachment #137586 - Flags: review?(bsmedberg)
Attachment #137553 - Attachment description: (Iv1b) </xpinstall/*>, with no function call → (Iv1b) </xpinstall/*>
Attachment #137553 - Attachment is obsolete: true
Attachment #137553 - Flags: superreview?(dveditz+bmo)
Attachment #137545 - Attachment description: (Iv1) </xpinstall/*>, with no function call → (Iv1) </xpinstall/*>
Attachment #137382 - Attachment description: (Hv1) "Unused variable `[...]'", with no function call. → (Hv1) "Unused variable `[...]'"
Patch Jv1, plus restoration of 2 |#ifdef notdef| blocks. (To let NSS peoples handle them.)
Attachment #137547 - Attachment description: (Jv1) </security/*>, with no function call → (Jv1) </security/*>
Attachment #137547 - Attachment is obsolete: true
Attachment #137547 - Flags: review?(kaie)
Comment on attachment 137588 [details] [diff] [review] (Jv1b) </security/*> [+/- Checked in: see Comment 76] 'r=?': (see comment 23)
Attachment #137588 - Flags: review?(kaie)
Comment on attachment 137548 [details] [diff] [review] (Kv1) </netwerk/*> This will be included in bug 203422 patch :->
Attachment #137548 - Attachment description: (Kv1) </netwerk/*>, with no function call → (Kv1) </netwerk/*>
Attachment #137548 - Attachment is obsolete: true
Attachment #137548 - Flags: review?(darin)
Comment on attachment 137586 [details] [diff] [review] (Iv1c) </xpinstall/*> [Checked in: Comment 71] Seems like a lot of gratuitous moving variables around to get rid of one warning, but OK if it makes you happy. sr=dveditz
Attachment #137586 - Flags: superreview?(dveditz+bmo) → superreview+
Comment on attachment 137586 [details] [diff] [review] (Iv1c) </xpinstall/*> [Checked in: Comment 71] (For the record) > gratuitous moving variables 1 was requested by timeless (from a duplicate bug): I simply applied it to 4 other occurences...
Attachment #137586 - Flags: approval1.6?
Attachment #137586 - Flags: review?(bsmedberg) → review+
Comment on attachment 137551 [details] [diff] [review] (Nv1) </modules/libutil/*> [Checked in: Comment 72] 'approval1.6=?': Trivial code move (if not too late)
Attachment #137551 - Attachment description: (Nv1) </modules/libutil/*>, with no function call → (Nv1) </modules/libutil/*>
Attachment #137551 - Flags: approval1.6?
Attachment #137539 - Attachment description: (Cv1b) </layout/*>, with no function call → (Cv1b) </layout/*>
Comment on attachment 137539 [details] [diff] [review] (Cv1b) </layout/*> [Checked in: Comment 73] Too late in the 1.6 timeframe for changes that aren't serious regressions, security, or crash related.
Attachment #137539 - Flags: approval1.6? → approval1.6-
Comment on attachment 137551 [details] [diff] [review] (Nv1) </modules/libutil/*> [Checked in: Comment 72] Too late in the 1.6 timeframe for changes that aren't serious regressions, security, or crash related.
Attachment #137551 - Flags: approval1.6? → approval1.6-
Comment on attachment 137586 [details] [diff] [review] (Iv1c) </xpinstall/*> [Checked in: Comment 71] Too late in the 1.6 timeframe for changes that aren't serious regressions, security, or crash related.
Attachment #137586 - Flags: approval1.6? → approval1.6-
Comment on attachment 137588 [details] [diff] [review] (Jv1b) </security/*> [+/- Checked in: see Comment 76] 'r=?': (see comment 23) (moving from kaie to wchang)
Attachment #137588 - Flags: review?(kaie) → review?(wchang0222)
Comment on attachment 137544 [details] [diff] [review] (Gv1b) </mailnews/*> [Checked in: Comment 80] 'r=?': (see comment 23) (moving sspitzer from r? to sr?)
Attachment #137544 - Flags: superreview?(sspitzer)
Attachment #137544 - Flags: review?(sspitzer)
Attachment #137544 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 137544 [details] [diff] [review] (Gv1b) </mailnews/*> [Checked in: Comment 80] I still don't like those trailing blank line deletions :-P
Attachment #137544 - Flags: review?(neil.parkwaycc.co.uk) → review+
Comment on attachment 137550 [details] [diff] [review] (Mv1) </embedding/*> [Checked in: Comment 74] r=adamlock
Attachment #137550 - Flags: review?(locka) → review+
Attachment #137550 - Flags: superreview?(alecf)
Attachment #137550 - Attachment description: (Mv1) </embedding/*>, with no function call → (Mv1) </embedding/*>
Attachment #137544 - Attachment description: (Gv1b) </mailnews/*>, with no function call → (Gv1b) </mailnews/*>
Comment on attachment 137550 [details] [diff] [review] (Mv1) </embedding/*> [Checked in: Comment 74] sr=alecf
Attachment #137550 - Flags: superreview?(alecf) → superreview+
Comment on attachment 137586 [details] [diff] [review] (Iv1c) </xpinstall/*> [Checked in: Comment 71] Check in: { 12/20/2003 10:11 neil%parkwaycc.co.uk 1.17 }
Attachment #137586 - Attachment description: (Iv1c) </xpinstall/*> → (Iv1c) </xpinstall/*> [Checked in: Comment 71]
Attachment #137586 - Attachment is obsolete: true
Comment on attachment 137551 [details] [diff] [review] (Nv1) </modules/libutil/*> [Checked in: Comment 72] Check in: { 12/20/2003 10:10 neil%parkwaycc.co.uk 1.20 }
Attachment #137551 - Attachment description: (Nv1) </modules/libutil/*> → (Nv1) </modules/libutil/*> [Checked in: Comment 72]
Attachment #137551 - Attachment is obsolete: true
Comment on attachment 137539 [details] [diff] [review] (Cv1b) </layout/*> [Checked in: Comment 73] Check in: { 12/20/2003 10:09 neil%parkwaycc.co.uk }
Attachment #137539 - Attachment description: (Cv1b) </layout/*> → (Cv1b) </layout/*> [Checked in: Comment 73]
Attachment #137539 - Attachment is obsolete: true
Comment on attachment 137550 [details] [diff] [review] (Mv1) </embedding/*> [Checked in: Comment 74] Check in: { 12/20/2003 12:09 neil%parkwaycc.co.uk 1.7 }
Attachment #137550 - Attachment description: (Mv1) </embedding/*> → (Mv1) </embedding/*> [Checked in: Comment 74]
Attachment #137550 - Attachment is obsolete: true
Comment on attachment 137588 [details] [diff] [review] (Jv1b) </security/*> [+/- Checked in: see Comment 76] All the unused variable warnings in this patch, except the last one (pkcs11u.c), have been fixed on the NSS trunk. I opened bug 229289 for the last warning.
Attachment #137588 - Attachment is obsolete: true
Attachment #137588 - Flags: review?(wchang0222)
Comment on attachment 137588 [details] [diff] [review] (Jv1b) </security/*> [+/- Checked in: see Comment 76] Addition to comment 75: Check in : { wchang0222%aol.com Dec 23 13:__ }
Attachment #137588 - Attachment description: (Jv1b) </security/*> → (Jv1b) </security/*> [+/- Checked in: see Comment 76]
Depends on: 229289
Depends on: 229182
No longer depends on: 229182
Comment on attachment 137549 [details] [diff] [review] (Lv1) </widget/src/mac/*> (cleanup only) [Checked in: Comment 78] r=me. I've been meaning to remove all the non-TARGET_CARBON code at some point too.
Attachment #137549 - Flags: review?(bryner) → review+
Attachment #137549 - Flags: superreview?(blizzard)
Attachment #137549 - Flags: superreview?(blizzard) → superreview+
Comment on attachment 137549 [details] [diff] [review] (Lv1) </widget/src/mac/*> (cleanup only) [Checked in: Comment 78] Check in: { 01/06/2004 15:24 neil%parkwaycc.co.uk 1.126 }
Attachment #137549 - Attachment description: (Lv1) </widget/src/mac/*> (cleanup only) → (Lv1) </widget/src/mac/*> (cleanup only) [Checked in: Comment 78]
Attachment #137549 - Attachment is obsolete: true
Comment on attachment 137544 [details] [diff] [review] (Gv1b) </mailnews/*> [Checked in: Comment 80] sr=sspitzer
Attachment #137544 - Flags: superreview?(sspitzer) → superreview+
Comment on attachment 137544 [details] [diff] [review] (Gv1b) </mailnews/*> [Checked in: Comment 80] Check in: { 01/09/2004 16:32 neil%parkwaycc.co.uk }
Attachment #137544 - Attachment description: (Gv1b) </mailnews/*> → (Gv1b) </mailnews/*> [Checked in: Comment 80]
Attachment #137544 - Attachment is obsolete: true
Target Milestone: mozilla1.7alpha → ---
Comment on attachment 137533 [details] [diff] [review] (Av1c) </xpcom/*> [Checked in: Comment 83] No review from <dougt@meer.net> since '2003-12-16' :-(
Attachment #137533 - Flags: review?(dougt) → review?(BradleyJunk)
Comment on attachment 137533 [details] [diff] [review] (Av1c) </xpcom/*> [Checked in: Comment 83] r=dbradley
Attachment #137533 - Flags: review?(BradleyJunk) → review+
Attachment #137533 - Flags: superreview?(Henry.Jia)
Attachment #137533 - Flags: superreview?(Henry.Jia) → superreview+
Comment on attachment 137533 [details] [diff] [review] (Av1c) </xpcom/*> [Checked in: Comment 83] Check in: { 2004-04-21 04:16 neil%parkwaycc.co.uk }
Attachment #137533 - Attachment description: (Av1c) </xpcom/*>, with no function call → (Av1c) </xpcom/*> [Checked in: Comment 83]
Attachment #137533 - Attachment is obsolete: true
Depends on: 229298
Comment on attachment 146705 [details] [diff] [review] (Ov1) </mailnews/*> additional [Checked in: Comment 97] I have no compiler: Could you (super-)review/compile/test/check in this patch ? Thanks.
Attachment #146705 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #146705 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 146706 [details] [diff] [review] (Pv1) </profile/*> [Checked in: Comment 100] I have no compiler: Could you (super-)review/compile/test/check in this patch ? Thanks.
Attachment #146706 - Flags: superreview?(ccarlen)
Attachment #146706 - Flags: review?(ccarlen)
Comment on attachment 146707 [details] [diff] [review] (Qv1) </ipc/*> [Checked in: Comment 96] I have no compiler: Could you (super-)review/compile/test/check in this patch ? Thanks.
Attachment #146707 - Flags: superreview?(leaf)
Attachment #146707 - Flags: review?(leaf)
Comment on attachment 146708 [details] [diff] [review] (Rv1) </security/*> additional [Checked in: Comment 92] I have no compiler: Could you review/compile/test/check in this patch ? Thanks.
Attachment #146708 - Flags: review?(wchang0222)
Comment on attachment 146708 [details] [diff] [review] (Rv1) </security/*> additional [Checked in: Comment 92] r=wtc. I've checked in this patch on the NSS tip (NSS 3.10).
Attachment #146708 - Flags: review?(wchang0222) → review+
Attachment #146708 - Attachment description: (Rv1) </security/*> additional → (Rv1) </security/*> additional [Checked in: Comment 92]
Attachment #146708 - Attachment is obsolete: true
Comment on attachment 146707 [details] [diff] [review] (Qv1) </ipc/*> [Checked in: Comment 96] it does, indeed, remove an unused variable warning and compilation succeeds normally. i'm not sure how to functionally test ipc, though.
Attachment #146707 - Flags: review?(leaf) → review+
Comment on attachment 146707 [details] [diff] [review] (Qv1) </ipc/*> [Checked in: Comment 96] punting super-revew to scc; this looks fine to me, scott, since, well, the variable is unused and the function is void, to boot.
Attachment #146707 - Flags: superreview?(leaf) → superreview?(scc)
Comment on attachment 146707 [details] [diff] [review] (Qv1) </ipc/*> [Checked in: Comment 96] works for me; sr=scc
Attachment #146707 - Flags: superreview?(scc) → superreview+
Attachment #146706 - Attachment description: (Ov1) </profile/*> → (Pv1) </profile/*>
Comment on attachment 146707 [details] [diff] [review] (Qv1) </ipc/*> [Checked in: Comment 96] marking as obsolete, as this patch has been committed.
Attachment #146707 - Attachment is obsolete: true
Attachment #146707 - Attachment description: (Qv1) </ipc/*> → (Qv1) </ipc/*> [Checked in: Comment 96]
Attachment #146705 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #146705 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #146705 - Flags: review+
Attachment #146705 - Flags: superreview?(bienvenu)
Attachment #146705 - Flags: superreview?(bienvenu) → superreview+
Comment on attachment 146705 [details] [diff] [review] (Ov1) </mailnews/*> additional [Checked in: Comment 97] Check in: { 2004-04-26 16:28 neil%parkwaycc.co.uk }
Attachment #146705 - Attachment description: (Ov1) </mailnews/*> additional → (Ov1) </mailnews/*> additional [Checked in: Comment 97]
Attachment #146705 - Attachment is obsolete: true
Comment on attachment 146706 [details] [diff] [review] (Pv1) </profile/*> [Checked in: Comment 100] No (super-)review from <ccarlen@mac.com> since '2004-04-21' :-( *** I have no compiler: Could you (super-)review/compile/test/check in this patch ? Thanks.
Attachment #146706 - Flags: superreview?(rbs)
Attachment #146706 - Flags: superreview?(ccarlen)
Attachment #146706 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #146706 - Flags: review?(ccarlen)
Attachment #146706 - Flags: review?(neil.parkwaycc.co.uk) → review+
Comment on attachment 146706 [details] [diff] [review] (Pv1) </profile/*> [Checked in: Comment 100] s=rbs, I had missed this from my review queue.
Attachment #146706 - Flags: superreview?(rbs) → superreview+
Comment on attachment 146706 [details] [diff] [review] (Pv1) </profile/*> [Checked in: Comment 100] Check in: { 2004-06-22 01:34 neil%parkwaycc.co.uk mozilla/ profile/ pref-migrator/ src/ nsPrefMigration.cpp 1.195 }
Attachment #146706 - Attachment description: (Pv1) </profile/*> → (Pv1) </profile/*> [Checked in: Comment 100]
Attachment #146706 - Attachment is obsolete: true
Whiteboard: [Leave open until there is no more such warnings in tinderbox: wait for bug 228780 to better see]
Attached patch (Sv1) </mailnews/*> 3rd (obsolete) — — Splinter Review
Fix for {{ Linux brad Clobber (info) on 10/28 06:37 bienvenu 127. mailnews/db/msgdb/src/nsMsgThread.cpp:410 (See build log excerpt) Unused variable `nsIMsgDBHdr*curMsgHdr' 408 { 409 nsMsgKey oldThreadParent, curHdrKey; 410 nsIMsgDBHdr *curMsgHdr = curHdr; 411 nsMsgHdr* oldTopLevelMsgHdr = NS_STATIC_CAST(nsMsgHdr*, oldTopLevelHdr); // closed system, cast ok 412 curHdr->GetThreadParent(&oldThreadParent); }}
Attachment #163723 - Attachment description: (Sv1) <nsMsgThread.cpp> → (Sv1) </mailnews/*> 3rd
Attachment #163723 - Attachment is obsolete: true
Attached patch (Sv1a) </mailnews/*> 3rd (obsolete) — — Splinter Review
Sv1, plus fix for the other "same" warnings in </mailnews/*>.
Comment on attachment 163726 [details] [diff] [review] (Sv1a) </mailnews/*> 3rd I have no compiler: Could you (super-)review/compile/test/check in this patch ? Thanks.
Attachment #163726 - Flags: superreview?(bienvenu)
Attachment #163726 - Flags: review?(bienvenu)
Product: Browser → Seamonkey
Comment on attachment 163726 [details] [diff] [review] (Sv1a) </mailnews/*> 3rd No super-review from <bienvenu@nventure.com> since "2004-10-28" :-( I have no compiler: Could you (super-)review/compile/test/check in this patch ? Thanks.
Attachment #163726 - Flags: superreview?(dmose)
Attachment #163726 - Flags: superreview?(bienvenu)
Attachment #163726 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #163726 - Flags: review?(bienvenu)
Comment on attachment 163726 [details] [diff] [review] (Sv1a) </mailnews/*> 3rd Two of the hunks in this patch are no longer necessary and no longer apply because the code in question was deleted. However, new code with new warnings seems to have been added since ;-)
Attachment #163726 - Flags: review?(neil.parkwaycc.co.uk) → review+
Attachment #163726 - Attachment is obsolete: true
Attachment #163726 - Flags: superreview?(dmose)
Attached patch (Sv2_bB) </mailnews/*> 3rd (obsolete) — — Splinter Review
Sv1a, with comment 105 suggestion(s), and "blank line" modifications.
Attachment #173324 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 173324 [details] [diff] [review] (Sv2_bB) </mailnews/*> 3rd >Index: mozilla/mailnews/base/src/nsMsgGroupThread.cpp >@@ -235,9 +229,8 @@ nsresult nsMsgGroupThread::ReparentNonRe I don't think that the remaining changes in this file are useful, unless you can point me to build warnings that they will fix. >Index: mozilla/mailnews/db/msgdb/src/nsMsgThread.cpp >@@ -407,7 +404,6 @@ nsresult nsMsgThread::ReparentNonReferen >- nsIMsgDBHdr *curMsgHdr = curHdr; Nor the changes in this file, apart from this one looks ok. The other changes look ok, but please double-check for other warnings in the same files that you can fix at the same time.
Attachment #173324 - Flags: review?(neil.parkwaycc.co.uk) → review-
Attached patch (Sv3) </mailnews/*> 3rd (obsolete) — — Splinter Review
Sv2_bB, with comment 107 suggestion(s). (Unrelated) I'm wondering about: Index: mozilla/mailnews/import/comm4x/src/nsComm4xProfile.cpp nsComm4xProfile::GetMailDir(const PRUnichar *aProfile, PRUnichar **_retval) #if defined(XP_WIN) || defined(XP_OS2) || defined(XP_MACOSX) #if defined(XP_MAC) || defined(XP_MACOSX) // |XP_MAC| could be removed here, or should be added in the previous #ifdef !? #if defined(XP_WIN) || defined(XP_OS2) || defined(XP_MAC) || defined(XP_MACOSX) // Same; moreover, it duplicates the first #ifdef and could/should be removed !?
Attachment #173324 - Attachment is obsolete: true
Attachment #173500 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 173500 [details] [diff] [review] (Sv3) </mailnews/*> 3rd >- PRInt32 oldRecent = GetServerStateParser().NumberOfRecentMessages(); >+ // PRInt32 oldRecent = >+ GetServerStateParser().NumberOfRecentMessages(); This can be commented out completely, see the comment further on in the file. (Maybe both this and that comment should be removed compeltely, but I wouldn't know about that) r=me with this nit fixed. I think there's another bug filed on XP_MAC cleanup.
Attachment #173500 - Flags: review?(neil.parkwaycc.co.uk) → review+
Sv3, with comment 109 suggestion(s). Keeping {{ (Sv3) </mailnews/*> 3rd patch 2005-02-05 19:05 PST 5.68 KB neil.parkwaycc.co.uk: review+ }}
Attachment #173500 - Attachment is obsolete: true
Attachment #173534 - Flags: superreview?(dmose)
Attachment #173534 - Flags: review+
(In reply to comment #109) > I think there's another bug filed on XP_MAC cleanup. Right: bug 196105.
Comment on attachment 173534 [details] [diff] [review] (Sv3a) </mailnews/*> 3rd [Checked in: Comment 114] sr=dmose
Attachment #173534 - Flags: superreview?(dmose) → superreview+
Attachment #173534 - Flags: approval1.8b?
Comment on attachment 173534 [details] [diff] [review] (Sv3a) </mailnews/*> 3rd [Checked in: Comment 114] a=asa for 1.8b.
Attachment #173534 - Flags: approval1.8b? → approval1.8b+
Comment on attachment 173534 [details] [diff] [review] (Sv3a) </mailnews/*> 3rd [Checked in: Comment 114] Check in: { 2005-02-16 03:50 neil%parkwaycc.co.uk }
Attachment #173534 - Attachment description: (Sv3a) </mailnews/*> 3rd → (Sv3a) </mailnews/*> 3rd [Checked in: Comment 114]
Attachment #173534 - Attachment is obsolete: true
Attached patch (Tv1) transformiix/xpath (obsolete) — — Splinter Review
Just thought I'd help a bit.
Attachment #174788 - Flags: review?
Attachment #174788 - Flags: review? → review?(bugmail)
Comment on attachment 174788 [details] [diff] [review] (Tv1) transformiix/xpath Thanks ! I wonder if fixing {{ 10. extensions/transformiix/source/xpath/XFormsFunctionCall.cpp:81 (See build log excerpt) Unused variable `nsresult rv' 79 { 80 *aResult = nsnull; 81 nsresult rv = NS_OK; 82 txListIterator iter(&params); }} by simply removing line 81 would not be best, since that |rv| not used at the end of the function.
Attachment #174788 - Attachment description: transformiix/xpath → (Tv1) transformiix/xpath
Attachment #174788 - Flags: superreview?(peterv)
*** Bug 282937 has been marked as a duplicate of this bug. ***
Comment on attachment 174788 [details] [diff] [review] (Tv1) transformiix/xpath Code was rewritten as part of the fix for bug 278981.
Attachment #174788 - Attachment is obsolete: true
Attachment #174788 - Flags: superreview?(peterv)
Attachment #173534 - Attachment is obsolete: false
Attachment #137533 - Attachment is obsolete: false
Attachment #137539 - Attachment is obsolete: false
Attachment #137544 - Attachment is obsolete: false
Attachment #137549 - Attachment is obsolete: false
Attachment #137550 - Attachment is obsolete: false
Attachment #137551 - Attachment is obsolete: false
Attachment #137586 - Attachment is obsolete: false
Attachment #137588 - Attachment is obsolete: false
Attachment #146705 - Attachment is obsolete: false
Attachment #146707 - Attachment is obsolete: false
Attachment #146708 - Attachment is obsolete: false
Attachment #146706 - Attachment is obsolete: false
Depends on: 462141
Depends on: 488983
Blocks: 210608
Depends on: 488990
Depends on: 488991
Depends on: 488992
Depends on: 488993
Depends on: 488994
Depends on: 481881
Depends on: 485808
Depends on: 481357
No longer blocks: 210608
Depends on: 210608
compiler warnings are build config, let's put this there.
Component: General → Build Config
QA Contact: scc → build-config
Blocks: buildwarning
Whiteboard: [Leave open until there is no more such warnings in tinderbox: wait for bug 228780 to better see] → [build_warning][Leave open until there is no more such warnings in tinderbox: wait for bug 228780 to better see]
All -Wunused-variable warnings have been fixed. \o/
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: