diff --git a/db/queryoptimizercursor.cpp b/db/queryoptimizercursor.cpp index 6a1159221b9..a86d753b448 100644 --- a/db/queryoptimizercursor.cpp +++ b/db/queryoptimizercursor.cpp @@ -282,7 +282,7 @@ namespace mongo { shared_ptr newQueryOptimizerCursor( auto_ptr mps ) { try { return shared_ptr( new QueryOptimizerCursor( mps ) ); - } catch( const AssertionException &e ) { + } catch( const AssertionException & ) { // If there is an error off the bat it generally means there are no indexes // satisfying 'order'. We return an empty shared_ptr in this case. return shared_ptr();