mirror of https://github.com/GNOME/gimp.git
Fixed some compiler warnings plug-ins/pygimp/pygimp-colors.c
2008-06-09 Lars-Peter Clausen <lars@metafoo.de> Fixed some compiler warnings * plug-ins/pygimp/pygimp-colors.c * plug-ins/pygimp/pygimp-pdb.c svn path=/branches/soc-2008-python/; revision=25906
This commit is contained in:
parent
51f3fb3bc8
commit
acb5c34c8c
|
@ -1,3 +1,8 @@
|
|||
2008-06-09 Lars-Peter Clausen <lars@metafoo.de>
|
||||
Fixed some compiler warnings
|
||||
* plug-ins/pygimp/pygimp-colors.c
|
||||
* plug-ins/pygimp/pygimp-pdb.c
|
||||
|
||||
2008-06-09 Lars-Peter Clausen <lars@metafoo.de>
|
||||
Added wrapper for GimpColorProfileStore and GimpColorProfileCombobox
|
||||
* plug-ins/pygimp/gimpui.defs
|
||||
|
|
|
@ -666,7 +666,7 @@ rgb_pretty_print(PyObject *self, gboolean inexact)
|
|||
PyObject *r_f = NULL, *g_f = NULL, *b_f = NULL, *a_f = NULL;
|
||||
PyObject *r = NULL, *g = NULL, *b = NULL, *a = NULL;
|
||||
reprfunc repr;
|
||||
char *prefix;
|
||||
const char *prefix;
|
||||
|
||||
if (inexact) {
|
||||
repr = PyObject_Str;
|
||||
|
@ -1189,7 +1189,7 @@ hsv_pretty_print(PyObject *self, gboolean inexact)
|
|||
PyObject *h_f = NULL, *s_f = NULL, *v_f = NULL, *a_f = NULL;
|
||||
PyObject *h = NULL, *s = NULL, *v = NULL, *a = NULL;
|
||||
reprfunc repr;
|
||||
char *prefix;
|
||||
const char *prefix;
|
||||
|
||||
if (inexact) {
|
||||
repr = PyObject_Str;
|
||||
|
@ -1702,7 +1702,7 @@ hsl_pretty_print(PyObject *self, gboolean inexact)
|
|||
PyObject *h_f = NULL, *s_f = NULL, *l_f = NULL, *a_f = NULL;
|
||||
PyObject *h = NULL, *s = NULL, *l = NULL, *a = NULL;
|
||||
reprfunc repr;
|
||||
char *prefix;
|
||||
const char *prefix;
|
||||
|
||||
if (inexact) {
|
||||
repr = PyObject_Str;
|
||||
|
@ -2211,7 +2211,7 @@ cmyk_pretty_print(PyObject *self, gboolean inexact)
|
|||
PyObject *c_f = NULL, *m_f = NULL, *y_f = NULL, *k_f = NULL, *a_f = NULL;
|
||||
PyObject *c = NULL, *m = NULL, *y = NULL, *k = NULL, *a = NULL;
|
||||
reprfunc repr;
|
||||
char *prefix;
|
||||
const char *prefix;
|
||||
|
||||
if (inexact) {
|
||||
repr = PyObject_Str;
|
||||
|
|
|
@ -1049,7 +1049,10 @@ pygimp_pdb_build_param_info_tuple(int n_params, GimpParamDef *params)
|
|||
} else {
|
||||
for(i = 0; i < n_params; ++i) {
|
||||
if(!(arglist = Py_BuildValue("(i)", params[i].type))) break;
|
||||
if(!(type = PyEval_CallObject(pdb_arg_type, arglist))) break;
|
||||
if(!(type = PyEval_CallObject(pdb_arg_type, arglist))) {
|
||||
Py_DECREF(arglist);
|
||||
break;
|
||||
}
|
||||
PyTuple_SetItem(result, i,
|
||||
Py_BuildValue("(Oss)",
|
||||
type,
|
||||
|
@ -1060,7 +1063,6 @@ pygimp_pdb_build_param_info_tuple(int n_params, GimpParamDef *params)
|
|||
}
|
||||
|
||||
if(i != n_params) {
|
||||
Py_XDECREF(arglist);
|
||||
Py_DECREF(result);
|
||||
result = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue