Bug 1576453 - Fix a problem with unused variable in non-nightly builds; r=asuth
authorJan Varga <jan.varga@gmail.com>
Sun, 25 Aug 2019 17:39:17 +0000
changeset 489808 045217bb047625f7ba59febd30280d5adb2a02e0
parent 489807 ec217df7e227ad6f24b0b74cd01593b6509275da
child 489809 f421b779735281007fd34681fdb4f9a3358e234b
child 489813 98cbe150f012619bf9e8d44413fa33374e92dbc9
push id93577
push userjvarga@mozilla.com
push dateSun, 25 Aug 2019 17:40:25 +0000
treeherderautoland@045217bb0476 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersasuth
bugs1576453
milestone70.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 1576453 - Fix a problem with unused variable in non-nightly builds; r=asuth Differential Revision: https://phabricator.services.mozilla.com/D43357
dom/quota/ActorsParent.cpp
--- a/dom/quota/ActorsParent.cpp
+++ b/dom/quota/ActorsParent.cpp
@@ -4269,17 +4269,19 @@ nsresult QuotaManager::LoadQuota() {
 
   TimeStamp startTime = TimeStamp::Now();
 
   if (!loadQuotaFromCache ||
       !StaticPrefs::dom_quotaManager_loadQuotaFromCache() ||
       NS_WARN_IF(NS_FAILED(LoadQuotaFromCache()))) {
     // A keeper to defer the return only in Nightly, so that the telemetry data
     // for whole profile can be collected.
+#ifdef NIGHTLY_BUILD
     nsresult statusKeeper = NS_OK;
+#endif
 
     for (const PersistenceType type : kBestEffortPersistenceTypes) {
       if (NS_WARN_IF(IsShuttingDown())) {
         RETURN_STATUS_OR_RESULT(statusKeeper, NS_ERROR_FAILURE);
       }
 
       rv = InitializeRepository(type);
       if (NS_WARN_IF(NS_FAILED(rv))) {