silence some compiler warnings

This commit is contained in:
Peter Braden 2014-10-07 21:14:48 +02:00
parent 2d2ac2900c
commit 34eb174ae8
2 changed files with 1 additions and 2 deletions

View File

@ -34,7 +34,7 @@ NAN_METHOD(NamedWindow::New) {
NamedWindow* win;
if (args.Length() == 1){
win = new NamedWindow(std::string(*NanAsciiString(args[0]->ToString())), 0);
} else if (args.Length() == 2){
} else { //if (args.Length() == 2){
win = new NamedWindow(std::string(*NanAsciiString(args[0]->ToString())), 0);
}

View File

@ -1144,7 +1144,6 @@ NAN_METHOD(Matrix::FindContours) {
}
Local<Object> conts_to_return= NanNew(Contour::constructor)->GetFunction()->NewInstance();
Contour *contours = ObjectWrap::Unwrap<Contour>(conts_to_return);
NanReturnValue(conts_to_return);