Utilize CV_UNUSED macro

This commit is contained in:
Hamdi Sahloul
2018-09-07 20:33:52 +09:00
parent f3fae0dae0
commit a39e0daacf
98 changed files with 468 additions and 468 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
template<>
bool pyopencv_to(PyObject *obj, CvTermCriteria& dst, const char *name)
{
(void)name;
CV_UNUSED(name);
if(!obj)
return true;
return PyArg_ParseTuple(obj, "iid", &dst.type, &dst.max_iter, &dst.epsilon) > 0;
@@ -10,7 +10,7 @@ bool pyopencv_to(PyObject *obj, CvTermCriteria& dst, const char *name)
template<>
bool pyopencv_to(PyObject* obj, CvSlice& r, const char* name)
{
(void)name;
CV_UNUSED(name);
if(!obj || obj == Py_None)
return true;
if(PyObject_Size(obj) == 0)