Bug 1002891 - Fix -Wunused-variable warning in storage. r=mak
authorChris Peterson <cpeterson@mozilla.com>
Mon, 28 Apr 2014 19:41:18 -0700
changeset 181544 2dabaf1087cd5e93987ccf962b04cf156e433c74
parent 181543 5a056bb6be0cec7653834cee6ec0f50e4935cde3
child 181545 d26d6aab28da706edc0794c29def616a491a2a06
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewersmak
bugs1002891
milestone32.0a1
Bug 1002891 - Fix -Wunused-variable warning in storage. r=mak
storage/src/mozStorageAsyncStatementExecution.cpp
--- a/storage/src/mozStorageAsyncStatementExecution.cpp
+++ b/storage/src/mozStorageAsyncStatementExecution.cpp
@@ -582,17 +582,16 @@ AsyncExecuteStatements::Run()
     MutexAutoLock lockedScope(mMutex);
     if (mCancelRequested)
       mState = CANCELED;
   }
   if (mState == CANCELED)
     return notifyComplete();
 
   if (statementsNeedTransaction()) {
-    Connection* rawConnection = static_cast<Connection*>(mConnection.get());
     if (NS_SUCCEEDED(mConnection->beginTransactionInternal(mNativeConnection,
                                                            mozIStorageConnection::TRANSACTION_IMMEDIATE))) {
       mHasTransaction = true;
     }
 #ifdef DEBUG
     else {
       NS_WARNING("Unable to create a transaction for async execution.");
     }