1
0
Fork 0
mirror of https://github.com/ruby-opencv/ruby-opencv synced 2023-03-27 23:22:12 -04:00

modified cvcontourtree.cpp, cvfont.h, iplconvkernel.cpp to suppress warnings

This commit is contained in:
ser1zw 2011-04-18 01:08:47 +09:00
parent b6eebd4fb4
commit a3e10782ae
3 changed files with 5 additions and 3 deletions

View file

@ -78,7 +78,9 @@ rb_contour(int argc, VALUE *argv, VALUE self)
{
VALUE criteria, storage;
rb_scan_args(argc, argv, "01", &criteria);
CvSeq *contour = cvContourFromContourTree(CVCONTOURTREE(self), CVMEMSTORAGE(storage), VALUE_TO_CVTERMCRITERIA(criteria));
storage = cCvMemStorage::new_object();
CvSeq *contour = cvContourFromContourTree(CVCONTOURTREE(self), CVMEMSTORAGE(storage),
VALUE_TO_CVTERMCRITERIA(criteria));
return cCvSeq::new_sequence(cCvContour::rb_class(), contour, cCvPoint::rb_class(), storage);
}