mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
Fix a few compiler warnings
This commit is contained in:
parent
e41ae1ea93
commit
3ad181019f
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@ -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();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@ -180,7 +180,6 @@ class AsyncVCWorker : public NanAsyncWorker {
|
|||||||
private:
|
private:
|
||||||
VideoCaptureWrap *vc;
|
VideoCaptureWrap *vc;
|
||||||
Matrix* matrix;
|
Matrix* matrix;
|
||||||
int res;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user