diff --git a/ext/opencv/cvhistogram.cpp b/ext/opencv/cvhistogram.cpp index 28d530d..e88eb8b 100644 --- a/ext/opencv/cvhistogram.cpp +++ b/ext/opencv/cvhistogram.cpp @@ -123,7 +123,7 @@ VALUE rb_initialize(int argc, VALUE *argv, VALUE self) { VALUE _dims, _sizes, _type, _ranges, _uniform; - int dims, type, uniform; + int uniform; int* sizes; float** ranges = NULL; diff --git a/ext/opencv/cvmat.cpp b/ext/opencv/cvmat.cpp index 9a7f041..8861a4e 100644 --- a/ext/opencv/cvmat.cpp +++ b/ext/opencv/cvmat.cpp @@ -4415,7 +4415,6 @@ rb_filter2d(int argc, VALUE *argv, VALUE self) CvArr* self_ptr = CVARR(self); VALUE _dest = Qnil; try { - int type = cvGetElemType(kernel); _dest = new_mat_kind_object(cvGetSize(self_ptr), self); cvFilter2D(self_ptr, CVARR(_dest), kernel, NIL_P(_anchor) ? cvPoint(-1,-1) : VALUE_TO_CVPOINT(_anchor)); } diff --git a/ext/opencv/cvpoint3d32f.cpp b/ext/opencv/cvpoint3d32f.cpp index 117fefe..f24e0f4 100644 --- a/ext/opencv/cvpoint3d32f.cpp +++ b/ext/opencv/cvpoint3d32f.cpp @@ -113,7 +113,6 @@ rb_allocate(VALUE klass) VALUE rb_initialize(int argc, VALUE *argv, VALUE self) { - VALUE obj, x, y, z; CvPoint3D32f *self_ptr = CVPOINT3D32F(self); switch (argc) { case 0: diff --git a/ext/opencv/iplimage.cpp b/ext/opencv/iplimage.cpp index 3ccd4a0..cf1d60e 100644 --- a/ext/opencv/iplimage.cpp +++ b/ext/opencv/iplimage.cpp @@ -377,7 +377,7 @@ compute_smoothness(const IplImage *pFourierImage, const double lowFreqRatio, con int low, high; IplImage *filteredFourierImage; int totalIntensity; - double sum, den, totalArea; + double den, totalArea; CvScalar scalar; if (!(pFourierImage->nChannels == 1 && pFourierImage->depth == 64) ) { diff --git a/ext/opencv/pointset.cpp b/ext/opencv/pointset.cpp index 2520470..a5886e3 100644 --- a/ext/opencv/pointset.cpp +++ b/ext/opencv/pointset.cpp @@ -202,9 +202,6 @@ __NAMESPACE_END_POINT_SET int CVPOINTS_FROM_POINT_SET(VALUE object, CvPoint **pointset) { - VALUE storage; - CvSeq *seq = 0; - CvPoint2D32f p32; if (rb_obj_is_kind_of(object, cCvSeq::rb_class())) { if (CV_IS_SEQ_POINT_SET(CVSEQ(object))) { *pointset = (CvPoint*)cvCvtSeqToArray(CVSEQ(object),