g++ 4.6 compile (new -Wunused-but-set-variable warning)

This commit is contained in:
Mathias Stearn
2011-04-03 19:10:36 -04:00
parent cd19c1835f
commit fa7cd65e48
8 changed files with 6 additions and 12 deletions

View File

@@ -260,7 +260,7 @@ namespace mongo {
BSONElement e = oneArg(args);
bool found = false;
path root( args.firstElement().valuestrsafe() );
path root( e.valuestrsafe() );
if ( boost::filesystem::exists( root ) ) {
found = true;
boost::filesystem::remove_all( root );