mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
changed some functions to suppress warnings
This commit is contained in:
parent
bd1f2c7a34
commit
ca6b5daca1
2 changed files with 2 additions and 2 deletions
|
@ -154,7 +154,7 @@ by_code(int error_code)
|
|||
void
|
||||
raise(cv::Exception e)
|
||||
{
|
||||
rb_raise(by_code(e.code), e.what());
|
||||
rb_raise(by_code(e.code), "%s", e.what());
|
||||
}
|
||||
|
||||
__NAMESPACE_END_CVERROR
|
||||
|
|
|
@ -3449,7 +3449,7 @@ rb_canny(int argc, VALUE *argv, VALUE self)
|
|||
VALUE
|
||||
rb_pre_corner_detect(int argc, VALUE *argv, VALUE self)
|
||||
{
|
||||
VALUE aperture_size, dest;
|
||||
VALUE aperture_size, dest = Qnil;
|
||||
if (rb_scan_args(argc, argv, "01", &aperture_size) < 1)
|
||||
aperture_size = INT2FIX(3);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue