[pygobject] Fix some warnings.



commit 8be59c37dd57acc51875c7189ca09d728b729013
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Wed Aug 4 13:43:17 2010 +0200

    Fix some warnings.

 gi/pygi-argument.c |    2 --
 gi/pygi-invoke.c   |    2 +-
 gi/pygi-struct.c   |    1 -
 3 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gi/pygi-argument.c b/gi/pygi-argument.c
index 6bea63f..007c15f 100644
--- a/gi/pygi-argument.c
+++ b/gi/pygi-argument.c
@@ -251,8 +251,6 @@ check_number_release:
         }
         case GI_TYPE_TAG_GTYPE:
         {
-            gint is_instance;
-
             if (pyg_type_from_object (object) == 0) {
                 PyErr_Format (PyExc_TypeError, "Must be gobject.GType, not %s",
                               object->ob_type->tp_name);
diff --git a/gi/pygi-invoke.c b/gi/pygi-invoke.c
index 499378b..47086ef 100644
--- a/gi/pygi-invoke.c
+++ b/gi/pygi-invoke.c
@@ -808,7 +808,7 @@ _process_invocation_state (struct invocation_state *state,
                             transfer = GI_TRANSFER_EVERYTHING;
                         } else if (transfer == GI_TRANSFER_EVERYTHING) {
                             transfer = GI_TRANSFER_NOTHING;
-                            g_warning ("Out argument %u in %s returns a struct "
+                            g_warning ("Out argument %ld in %s returns a struct "
                                        "with a transfer mode of \"full\". "
                                        "Transfer mode should be set to \"none\" for "
                                        "struct type returns as there is no way to free "
diff --git a/gi/pygi-struct.c b/gi/pygi-struct.c
index e639c35..ea56890 100644
--- a/gi/pygi-struct.c
+++ b/gi/pygi-struct.c
@@ -56,7 +56,6 @@ _struct_new (PyTypeObject *type,
     static char *kwlist[] = { NULL };
 
     GIBaseInfo *info;
-    gboolean is_simple;
     gsize size;
     gpointer pointer;
     PyObject *self = NULL;



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