Bug 833939 - Initialize gLogConsoleErrors to FALSE, also in debug builds. r=bsmedberg
authorMike de Boer <mdeboer@mozilla.com>
Mon, 04 Mar 2013 12:50:06 +0100
changeset 123777 cc3bed297ae8f7da4965f92cf70ed43d1a5c8915
parent 123776 cf3772a6f4e9c4262954efc81152ce5acda1cfd8
child 123778 3ba8ed8f13debd540c16f427745e6eab4e10db56
push id24397
push userryanvm@gmail.com
push dateTue, 05 Mar 2013 15:24:36 +0000
treeherdermozilla-central@c95439870e05 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg
bugs833939
milestone22.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 833939 - Initialize gLogConsoleErrors to FALSE, also in debug builds. r=bsmedberg
toolkit/xre/nsAppRunner.cpp
--- a/toolkit/xre/nsAppRunner.cpp
+++ b/toolkit/xre/nsAppRunner.cpp
@@ -1057,22 +1057,17 @@ static nsresult AppInfoConstructor(nsISu
                                    REFNSIID aIID, void **aResult)
 {
   NS_ENSURE_NO_AGGREGATION(aOuter);
 
   return const_cast<nsXULAppInfo*>(&kAppInfo)->
     QueryInterface(aIID, aResult);
 }
 
-bool gLogConsoleErrors
-#ifdef DEBUG
-         = true;
-#else
-         = false;
-#endif
+bool gLogConsoleErrors = false;
 
 #define NS_ENSURE_TRUE_LOG(x, ret)               \
   PR_BEGIN_MACRO                                 \
   if (MOZ_UNLIKELY(!(x))) {                      \
     NS_WARNING("NS_ENSURE_TRUE(" #x ") failed"); \
     gLogConsoleErrors = true;                    \
     return ret;                                  \
   }                                              \