From 6e767fecde5c439bc8833aceb1e8a7bbb4b92113 Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" Date: Wed, 17 Aug 2005 09:35:24 +0000 Subject: [PATCH] Bug 287540 Fix various _C++_ compiler warnings from my Windows non-debug build patch by gautheri@noos.fr r=timeless sr=neil git-svn-id: svn://10.0.0.236/trunk@177939 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpfe/bootstrap/nsAppRunner.cpp | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/mozilla/xpfe/bootstrap/nsAppRunner.cpp b/mozilla/xpfe/bootstrap/nsAppRunner.cpp index acdd66149cc..689867ef2b8 100644 --- a/mozilla/xpfe/bootstrap/nsAppRunner.cpp +++ b/mozilla/xpfe/bootstrap/nsAppRunner.cpp @@ -1549,7 +1549,6 @@ public: int main(int argc, char* argv[]) { NS_TIMELINE_MARK("enter main"); - int i; //Moved here due to portability guideline 20. See bug 258055 #ifdef XP_WIN32 // Suppress the "DLL Foo could not be found" dialog, such that if dependent @@ -1594,22 +1593,25 @@ int main(int argc, char* argv[]) argc = NS_TraceMallocStartupArgs(argc, argv); #endif +#if defined(MOZ_WIDGET_GTK) || defined(MOZ_WIDGET_GTK2) || defined(MOZ_X11) + int i; +#endif + #ifdef MOZ_X11 /* Init threadsafe mode of Xlib API on demand * (currently this is only for testing, future builds may use this by * default) */ - PRBool x11threadsafe = PR_FALSE; - for (i=1; i