1
0
Fork 0
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:
ser1zw 2011-09-18 06:14:06 +09:00
parent bd1f2c7a34
commit ca6b5daca1
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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);