From 94043e1c0cbde92abae7a651d5a24241a67cf08a Mon Sep 17 00:00:00 2001 From: "roc+%cs.cmu.edu" Date: Wed, 8 Sep 2004 15:39:44 +0000 Subject: [PATCH] bug 258055. Fix broken C++ compiler bustage. r+sr=roc, patch by Yuliy Pisetsky --- xpfe/bootstrap/nsAppRunner.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xpfe/bootstrap/nsAppRunner.cpp b/xpfe/bootstrap/nsAppRunner.cpp index 3e00a003c01..007984398b4 100644 --- a/xpfe/bootstrap/nsAppRunner.cpp +++ b/xpfe/bootstrap/nsAppRunner.cpp @@ -1612,6 +1612,7 @@ static PRBool GetWantSplashScreen(int argc, char* argv[]) int main(int argc, char* argv[]) { NS_TIMELINE_MARK("enter main"); + int i; //Moved here due to portability guideline 20. See bug 258055 #if defined(DEBUG) && defined(XP_WIN32) // Disable small heap allocator to get heapwalk() giving us @@ -1671,7 +1672,7 @@ int main(int argc, char* argv[]) * (currently this is only for testing, future builds may use this by * default) */ PRBool x11threadsafe = PR_FALSE; - for (int i=1; i