Skip to content
Browse files

compile unused vars in v8 code

  • Loading branch information...
1 parent 9179db2 commit 9e517db3e1aa09d5cdf5edc5a574f5774af1c92a gregs committed Nov 21, 2011
Showing with 4 additions and 4 deletions.
  1. +3 −3 scripting/engine_v8.cpp
  2. +1 −1 scripting/v8_db.cpp
View
6 scripting/engine_v8.cpp
@@ -1034,7 +1034,7 @@ namespace mongo {
}
case mongo::BinData: {
- Local<v8::Object> b = readOnly ? readOnlyObjects->NewInstance() : internalFieldObjects->NewInstance();
+ /*Local<v8::Object> b = */ readOnly ? readOnlyObjects->NewInstance() : internalFieldObjects->NewInstance();
int len;
const char *data = f.binData( len );
@@ -1060,7 +1060,7 @@ namespace mongo {
}
case mongo::NumberLong: {
- Local<v8::Object> sub = readOnly ? readOnlyObjects->NewInstance() : internalFieldObjects->NewInstance();
+ /* Local<v8::Object> sub = */ readOnly ? readOnlyObjects->NewInstance() : internalFieldObjects->NewInstance();
unsigned long long val = f.numberLong();
v8::Function* numberLong = getNamedCons( "NumberLong" );
double floatApprox = (double)(long long)val;
@@ -1244,7 +1244,7 @@ namespace mongo {
}
case mongo::NumberLong: {
- Local<v8::Object> sub = internalFieldObjects->NewInstance();
+ /* Local<v8::Object> sub = */ internalFieldObjects->NewInstance();
unsigned long long val = f.numberLong();
v8::Function* numberLong = getNamedCons( "NumberLong" );
if ( (long long)val == (long long)(double)(long long)(val) ) {
View
2 scripting/v8_db.cpp
@@ -128,7 +128,7 @@ namespace mongo {
v8::Handle<v8::FunctionTemplate> getTimestampFunctionTemplate(V8Scope* scope) {
v8::Handle<v8::FunctionTemplate> ts = scope->createV8Function(dbTimestampInit);
- v8::Local<v8::Template> proto = ts->PrototypeTemplate();
+ /* v8::Local<v8::Template> proto = */ ts->PrototypeTemplate();
ts->InstanceTemplate()->SetInternalFieldCount( 1 );
return ts;

0 comments on commit 9e517db

Please sign in to comment.
Something went wrong with that request. Please try again.