summaryrefslogtreecommitdiff
path: root/community/mongodb/gcc46fixes2.diff
blob: 17257b1362d4d4e44089a24b84fe37047b361285 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
commit 5931bc0231c91ecdfc5dd313d8cce578eae426bb
Author: Eliot Horowitz <eliot@10gen.com>
Date:   Wed Mar 30 01:01:18 2011 -0400

    remove unused variable

diff --git a/db/commands.cpp b/db/commands.cpp
index c301fb3..0bbd765 100644
--- a/db/commands.cpp
+++ b/db/commands.cpp
@@ -127,7 +127,6 @@ namespace mongo {
         if ( strcmp(p, ".$cmd") != 0 ) return false;
 
         bool ok = false;
-        bool valid = false;
 
         BSONElement e = jsobj.firstElement();
         map<string,Command*>::iterator i;
@@ -138,7 +137,6 @@ namespace mongo {
            migrated over to the command object format.
            */
         else if ( (i = _commands->find(e.fieldName())) != _commands->end() ) {
-            valid = true;
             string errmsg;
             Command *c = i->second;
             if ( c->adminOnly() && !startsWith(ns, "admin.") ) {