Bug 825941 helper: Mark debug-only variable |rv| in nsUrlClassifierDBService.cpp as DebugOnly.
authorDaniel Holbert <dholbert@cs.stanford.edu>
Sun, 06 Jan 2013 18:06:23 -0800
changeset 117879 e742cc9b67d30dba9d0e571ab18852d683c98e97
parent 117832 46e86e8499b2814126e53e255d16c147d1cdcab4
child 117880 36467bcc46ada793724af4005deaf3ae36f9dda7
push id24129
push useremorley@mozilla.com
push dateMon, 07 Jan 2013 16:11:21 +0000
treeherdermozilla-central@c4966e14e726 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs825941
milestone20.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 825941 helper: Mark debug-only variable |rv| in nsUrlClassifierDBService.cpp as DebugOnly.
toolkit/components/url-classifier/nsUrlClassifierDBService.cpp
--- a/toolkit/components/url-classifier/nsUrlClassifierDBService.cpp
+++ b/toolkit/components/url-classifier/nsUrlClassifierDBService.cpp
@@ -25,16 +25,17 @@
 #include "nsString.h"
 #include "nsReadableUtils.h"
 #include "nsTArray.h"
 #include "nsNetUtil.h"
 #include "nsNetCID.h"
 #include "nsThreadUtils.h"
 #include "nsXPCOMStrings.h"
 #include "nsProxyRelease.h"
+#include "mozilla/DebugOnly.h"
 #include "mozilla/Mutex.h"
 #include "mozilla/TimeStamp.h"
 #include "mozilla/Telemetry.h"
 #include "prlog.h"
 #include "prprf.h"
 #include "prnetdb.h"
 #include "Entries.h"
 #include "mozilla/Attributes.h"
@@ -1501,17 +1502,17 @@ nsUrlClassifierDBService::Shutdown()
   nsCOMPtr<nsIPrefBranch> prefs = do_GetService(NS_PREFSERVICE_CONTRACTID);
   if (prefs) {
     prefs->RemoveObserver(CHECK_MALWARE_PREF, this);
     prefs->RemoveObserver(CHECK_PHISHING_PREF, this);
     prefs->RemoveObserver(GETHASH_TABLES_PREF, this);
     prefs->RemoveObserver(CONFIRM_AGE_PREF, this);
   }
 
-  nsresult rv;
+  DebugOnly<nsresult> rv;
   // First close the db connection.
   if (mWorker) {
     rv = mWorkerProxy->CancelUpdate();
     NS_ASSERTION(NS_SUCCEEDED(rv), "failed to post cancel update event");
 
     rv = mWorkerProxy->CloseDb();
     NS_ASSERTION(NS_SUCCEEDED(rv), "failed to post close db event");
   }