fixed multiple GCC warnings on Ubuntu 11.04
This commit is contained in:
@@ -150,7 +150,7 @@ static void translate_error_to_exception(void)
|
||||
cvSetErrStatus(0);
|
||||
}
|
||||
|
||||
#define ERRCHK do { if (cvGetErrStatus() != 0) { translate_error_to_exception(); return NULL; } } while (0)
|
||||
#define ERRCHK do { if (cvGetErrStatus() != 0) { translate_error_to_exception(); return 0; } } while (0)
|
||||
#define ERRWRAPN(F, N) \
|
||||
do { \
|
||||
try \
|
||||
@@ -3355,7 +3355,7 @@ static PyObject *pycvReshapeMatND(PyObject *self, PyObject *args)
|
||||
CvMatND *cva;
|
||||
if (!convert_to_CvMatND(o, &cva, "src"))
|
||||
return NULL;
|
||||
ints dims;
|
||||
ints dims={0,0};
|
||||
if (new_dims != NULL) {
|
||||
if (!convert_to_ints(new_dims, &dims, "new_dims"))
|
||||
return NULL;
|
||||
|
@@ -161,7 +161,7 @@ simple_argtype_mapping = {
|
||||
"int": ("int", "i", "0"),
|
||||
"float": ("float", "f", "0.f"),
|
||||
"double": ("double", "d", "0"),
|
||||
"c_string": ("char*", "s", '""')
|
||||
"c_string": ("char*", "s", '(char*)""')
|
||||
}
|
||||
|
||||
class ClassProp(object):
|
||||
|
Reference in New Issue
Block a user