169615: Get rid of MOZILLA_FIVE_HOME warning. r=dmose sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@134542 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
1c4588e4f9
commit
acbc41ecc3
@ -273,6 +273,7 @@ nsDirectoryService::GetCurrentProcessDirectory(nsILocalFile** aFile)
|
||||
}
|
||||
else
|
||||
{
|
||||
#if defined(DEBUG)
|
||||
static PRBool firstWarning = PR_TRUE;
|
||||
|
||||
if(firstWarning) {
|
||||
@ -280,6 +281,7 @@ nsDirectoryService::GetCurrentProcessDirectory(nsILocalFile** aFile)
|
||||
printf("Warning: MOZILLA_FIVE_HOME not set.\n");
|
||||
firstWarning = PR_FALSE;
|
||||
}
|
||||
#endif /* DEBUG */
|
||||
|
||||
// Fall back to current directory.
|
||||
if (getcwd(buf, sizeof(buf)))
|
||||
|
||||
@ -390,6 +390,7 @@ static void GetCurrentProcessDirectory(nsFileSpec& aFileSpec)
|
||||
}
|
||||
else
|
||||
{
|
||||
#if defined(DEBUG)
|
||||
static PRBool firstWarning = PR_TRUE;
|
||||
|
||||
if(firstWarning) {
|
||||
@ -397,6 +398,7 @@ static void GetCurrentProcessDirectory(nsFileSpec& aFileSpec)
|
||||
printf("Warning: MOZILLA_FIVE_HOME not set.\n");
|
||||
firstWarning = PR_FALSE;
|
||||
}
|
||||
#endif /* DEBUG */
|
||||
|
||||
// Fall back to current directory.
|
||||
if (getcwd(buf, sizeof(buf)))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user