Closed
Bug 277848
Opened 20 years ago
Closed 18 years ago
mozilla\xpfe\bootstrap\nsAppRunner.cpp(1629) : warning C4101: 'i' : unreferenced local variable
Categories
(Core Graveyard :: GFX: Gtk, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: Bugzilla-alanjstrBugs, Assigned: Bugzilla-alanjstrBugs)
References
()
Details
Attachments
(1 file)
|
1.06 KB,
patch
|
timeless
:
review+
|
Details | Diff | Splinter Review |
mozilla\xpfe\bootstrap\nsAppRunner.cpp(1629) : warning C4101: 'i' : unreferenced local variable This error seems to be caused by bug 258055
Attachment #170872 -
Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #170872 -
Flags: review?(timeless)
Comment 2•20 years ago
|
||
MOZ_WIDGET_GTKn implies MOZ_X11, surely? So you can just move the decl.
I did this specifically for http://lxr.mozilla.org/seamonkey/source/xpfe/bootstrap/nsAppRunner.cpp#1673
Assignee: Bugzilla-alanjstrBugs → blizzard
Comment 4•20 years ago
|
||
from https://bugzilla.mozilla.org/attachment.cgi?id=170872 Looks good to me, the variable |i| is only used in those conditions. if I could r+sr I would ;-) re c#2 if that is a useful assumption (I'm not sure) then I wonder why #ifdef MOZ_X11 is not just removed entirely (at the link from c#3) and instead the MOZ_WIDGET_GTKn #if moved up to encapsulate that.
Comment on attachment 170872 [details] [diff] [review] Patch to nsAppRunner.cpp someone is building gtk(2?)embed on windows, and i'm 99% certain they aren't building against x11. i'm not quite sure what that gtk code would do on windows, perhaps the code should be ifdef MOZ_X11, we can file a bug against widget:gtk asking about it.
Attachment #170872 -
Flags: review?(timeless) → review+
Updated•19 years ago
|
Comment 6•18 years ago
|
||
xpfe/bootstrap/nsAppRunner.cpp have been removed. The toolkit version does not have this problem AFAICT. http://bonsai.mozilla.org/cvsblame.cgi?file=/mozilla/toolkit/xre/nsAppRunner.cpp&rev=1.169&root=/cvsroot#2173 -> WORKSFORME
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
Updated•16 years ago
|
Attachment #170872 -
Flags: superreview?(neil)
Updated•16 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•