[gimp] plug-ins: Fix PyGIMP item warnings



commit 726ec88c26ddd92709e172a133993405691a8da5
Author: Martin Nordholts <martinn src gnome org>
Date:   Wed May 18 21:17:17 2011 +0200

    plug-ins: Fix PyGIMP item warnings

 plug-ins/pygimp/pygimp-item.c |    2 +-
 plug-ins/pygimp/pygimp-pdb.c  |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/pygimp/pygimp-item.c b/plug-ins/pygimp/pygimp-item.c
index 7a87114..9e4beeb 100644
--- a/plug-ins/pygimp/pygimp-item.c
+++ b/plug-ins/pygimp/pygimp-item.c
@@ -30,7 +30,7 @@
 
 #include <glib-object.h>
 
-PyObject *
+static PyObject *
 item_from_id(PyObject *not_used, PyObject *args)
 {
     gint32 ID;
diff --git a/plug-ins/pygimp/pygimp-pdb.c b/plug-ins/pygimp/pygimp-pdb.c
index fe0584f..cece765 100644
--- a/plug-ins/pygimp/pygimp-pdb.c
+++ b/plug-ins/pygimp/pygimp-pdb.c
@@ -31,6 +31,7 @@
 #include <structmember.h>
 
 #include <glib-object.h>
+#include <glib/gprintf.h>
 
 #ifndef PG_DEBUG
 # define PG_DEBUG 2
@@ -338,7 +339,7 @@ pygimp_param_to_tuple(int nparams, const GimpParam *params)
 GimpParam *
 pygimp_param_from_tuple(PyObject *args, const GimpParamDef *ptype, int nparams)
 {
-    PyObject *tuple, *item, *x, *y, *w, *h;
+    PyObject *tuple, *item, *x, *y;
     GimpParam *ret;
     int i, j, len;
     gint32 *i32a; gint16 *i16a; guint8 *i8a; gdouble *fa; gchar **sa;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]