Fix a few compiler warnings

This commit is contained in:
Peter Braden 2014-10-11 18:03:44 +02:00
parent e41ae1ea93
commit 3ad181019f
3 changed files with 2 additions and 1 deletions

View File

@ -126,6 +126,7 @@ NAN_METHOD(BackgroundSubtractorWrap::ApplyMOG) {
catch( cv::Exception& e ){ catch( cv::Exception& e ){
const char* err_msg = e.what(); const char* err_msg = e.what();
NanThrowError(err_msg); NanThrowError(err_msg);
NanReturnUndefined();
} }
}; };

View File

@ -72,5 +72,6 @@ NAN_METHOD(OpenCV::ReadImage) {
} catch( cv::Exception& e ){ } catch( cv::Exception& e ){
const char* err_msg = e.what(); const char* err_msg = e.what();
NanThrowError(err_msg); NanThrowError(err_msg);
NanReturnUndefined();
} }
}; };

View File

@ -180,7 +180,6 @@ class AsyncVCWorker : public NanAsyncWorker {
private: private:
VideoCaptureWrap *vc; VideoCaptureWrap *vc;
Matrix* matrix; Matrix* matrix;
int res;
}; };