Bug 858680, Prevent unused variable warning on opt builds, r=bustage.
☠☠ backed out by d4886d807eb2 ☠ ☠
authorBen Turner <bent.mozilla@gmail.com>
Thu, 21 May 2015 16:28:23 -0700
changeset 266193 2661dabba07444905c2b56b9c0891a47a7edcb37
parent 266192 8a03e892db51e07a20a85f97abe073cee7be0fa0
child 266194 9f9797766a5dbaed68e536982bfacf1c25979b53
push id2231
push usermichael.l.comella@gmail.com
push dateFri, 22 May 2015 20:04:59 +0000
reviewersbustage
bugs858680
milestone41.0a1
Bug 858680, Prevent unused variable warning on opt builds, r=bustage.
dom/indexedDB/ActorsParent.cpp
--- a/dom/indexedDB/ActorsParent.cpp
+++ b/dom/indexedDB/ActorsParent.cpp
@@ -8165,30 +8165,34 @@ struct QuotaClient::MultipleMaintenanceI
 
   MultipleMaintenanceInfo(const nsACString& aGroup,
                           const nsACString& aOrigin,
                           PersistenceType aPersistenceType,
                           nsTArray<nsString>&& aDatabasePaths)
    : MaintenanceInfoBase(aGroup, aOrigin, aPersistenceType)
    , mDatabasePaths(Move(aDatabasePaths))
   {
+#ifdef DEBUG
     MOZ_ASSERT(!mDatabasePaths.IsEmpty());
     for (const nsString& databasePath : mDatabasePaths) {
       MOZ_ASSERT(!databasePath.IsEmpty());
     }
+#endif
   }
 
   MultipleMaintenanceInfo(MultipleMaintenanceInfo&& aOther)
     : MaintenanceInfoBase(Move(aOther))
     , mDatabasePaths(Move(aOther.mDatabasePaths))
   {
+#ifdef DEBUG
     MOZ_ASSERT(!mDatabasePaths.IsEmpty());
     for (const nsString& databasePath : mDatabasePaths) {
       MOZ_ASSERT(!databasePath.IsEmpty());
     }
+#endif
   }
 
   MultipleMaintenanceInfo(const MultipleMaintenanceInfo& aOther) = delete;
 };
 
 class QuotaClient::ShutdownWorkThreadsRunnable final
   : public nsRunnable
 {