IndexedDB: IDBLevelDBBackingStore compilation fails because of unused variable.
authorvsevik@chromium.org <vsevik@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Jul 2012 10:54:21 +0000 (10:54 +0000)
committervsevik@chromium.org <vsevik@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Jul 2012 10:54:21 +0000 (10:54 +0000)
https://bugs.webkit.org/show_bug.cgi?id=91612

Reviewed by Pavel Feldman.

Replaced ASSERT with ASSERT_UNUSED.

* Modules/indexeddb/IDBLevelDBBackingStore.cpp:
(WebCore::IDBLevelDBBackingStore::getObjectStores):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@122942 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/Modules/indexeddb/IDBLevelDBBackingStore.cpp

index 0c56601..e2b1c97 100644 (file)
@@ -1,3 +1,15 @@
+2012-07-18  Vsevolod Vlasov  <vsevik@chromium.org>
+
+        IndexedDB: IDBLevelDBBackingStore compilation fails because of unused variable.
+        https://bugs.webkit.org/show_bug.cgi?id=91612
+
+        Reviewed by Pavel Feldman.
+
+        Replaced ASSERT with ASSERT_UNUSED.
+
+        * Modules/indexeddb/IDBLevelDBBackingStore.cpp:
+        (WebCore::IDBLevelDBBackingStore::getObjectStores):
+
 2012-07-18  Yoshifumi Inoue  <yosin@chromium.org>
 
         REGRESSION(r117738) [Forms] Default step base should be 0 (=1970-01) for input type month
index fbf5173..832cd4c 100644 (file)
@@ -422,7 +422,7 @@ void IDBLevelDBBackingStore::getObjectStores(int64_t databaseId, Vector<int64_t>
             keyGeneratorCurrentNumber = decodeInt(it->value().begin(), it->value().end());
             // FIXME: Return keyGeneratorCurrentNumber, cache in object store, and write lazily to backing store.
             // For now, just assert that if it was written it was valid.
-            ASSERT(keyGeneratorCurrentNumber >= KeyGeneratorInitialNumber);
+            ASSERT_UNUSED(keyGeneratorCurrentNumber, keyGeneratorCurrentNumber >= KeyGeneratorInitialNumber);
             it->next();
         }