Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

Commit

Permalink
modified cvcontourtree.cpp, cvfont.h, iplconvkernel.cpp to suppress w…
Browse files Browse the repository at this point in the history
…arnings
  • Loading branch information
ser1zw committed Apr 17, 2011
1 parent b6eebd4 commit a3e1078
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion ext/opencv/cvcontourtree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion ext/opencv/cvfont.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ __NAMESPACE_BEGIN_CVFONT
#define FO_VSCALE(op) NUM2DBL(rb_hash_aref(op, ID2SYM(rb_intern("vscale"))))
#define FO_SHEAR(op) NUM2DBL(rb_hash_aref(op, ID2SYM(rb_intern("shear"))))
#define FO_THICKNESS(op) FIX2INT(rb_hash_aref(op, ID2SYM(rb_intern("thickness"))))
#define FO_LINE_TYPE(op) FIX2INT(rb_hash_aref(op, ID2SYM(rb_intern("line_type"))) == ID2SYM("aa") ? INT2FIX(CV_AA) : rb_hash_aref(op, ID2SYM(rb_intern("line_type"))))
#define FO_LINE_TYPE(op) FIX2INT(rb_hash_aref(op, ID2SYM(rb_intern("line_type"))))


VALUE rb_class();
Expand Down
2 changes: 1 addition & 1 deletion ext/opencv/iplconvkernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ rb_initialize(int argc, VALUE *argv, VALUE self)
int _cols = NUM2INT(cols);
int _rows = NUM2INT(rows);
int num_values;
int *_values;
int *_values = NULL;
const int INVALID_SHAPE = -1;

shape_type = CVMETHOD("STRUCTURING_ELEMENT_SHAPE", shape, INVALID_SHAPE);
Expand Down

0 comments on commit a3e1078

Please sign in to comment.