Bug 620360 - Fix unused variable warning in StatementCache::FinalizeCachedStatements; r+a=sdwilsh
authorMs2ger <ms2ger@gmail.com>
Tue, 21 Dec 2010 15:03:01 -0800
changeset 59578 c544c99fad5ac09c0d4b0a778d511ee0292cf673
parent 59577 046dada4fadce81561707a5a700d4c6371c90ebc
child 59579 0257a5a7419adac83e1b99b3220bbad563e528a7
push id17673
push userdholbert@mozilla.com
push dateTue, 21 Dec 2010 23:04:38 +0000
treeherdermozilla-central@52b229f6a051 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs620360
milestone2.0b9pre
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 620360 - Fix unused variable warning in StatementCache::FinalizeCachedStatements; r+a=sdwilsh
storage/public/StatementCache.h
--- a/storage/public/StatementCache.h
+++ b/storage/public/StatementCache.h
@@ -128,18 +128,17 @@ private:
   already_AddRefed<StatementType>
   CreateStatement(const nsACString& aQuery);
   static
   PLDHashOperator
   FinalizeCachedStatements(const nsACString& aKey,
                            nsCOMPtr<StatementType>& aStatement,
                            void*)
   {
-    nsresult rv = aStatement->Finalize();
-    NS_WARN_IF_FALSE(NS_SUCCEEDED(rv), "Finalizing statement failed!");
+    (void)aStatement->Finalize();
     return PL_DHASH_NEXT;
   }
 
   nsInterfaceHashtable<nsCStringHashKey, StatementType> mCachedStatements;
   nsCOMPtr<mozIStorageConnection>& mConnection;
 };
 
 template< >