Closed Bug 277848 Opened 21 years ago Closed 19 years ago

mozilla\xpfe\bootstrap\nsAppRunner.cpp(1629) : warning C4101: 'i' : unreferenced local variable

Categories

(Core Graveyard :: GFX: Gtk, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: Bugzilla-alanjstrBugs, Assigned: Bugzilla-alanjstrBugs)

References

()

Details

Attachments

(1 file)

mozilla\xpfe\bootstrap\nsAppRunner.cpp(1629) : warning C4101: 'i' : unreferenced local variable This error seems to be caused by bug 258055
Only defines i when it is going to be used.
Attachment #170872 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #170872 - Flags: review?(timeless)
MOZ_WIDGET_GTKn implies MOZ_X11, surely? So you can just move the decl.
Assignee: Bugzilla-alanjstrBugs → blizzard
Assignee: blizzard → Bugzilla-alanjstrBugs
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+
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: 19 years ago
Resolution: --- → WORKSFORME
Attachment #170872 - Flags: superreview?(neil)
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: