[pygobject] Fix build on C89 Compilers



commit 9b6b6c7ee6a621cba99f51857eadd622a1535118
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Thu Aug 15 14:41:40 2013 +0800

    Fix build on C89 Compilers
    
    Avoid a variable declaration at the middle of the block
    
    https://bugzilla.gnome.org/show_bug.cgi?id=707264

 gi/pygi-closure.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gi/pygi-closure.c b/gi/pygi-closure.c
index 7582069..2f5548a 100644
--- a/gi/pygi-closure.c
+++ b/gi/pygi-closure.c
@@ -33,10 +33,11 @@ _pygi_closure_assign_pyobj_to_retval (gpointer retval, PyObject *object,
                                       GITransfer transfer)
 {
     GIArgument arg = _pygi_argument_from_object (object, type_info, transfer);
+    GITypeTag type_tag;
     if (PyErr_Occurred ())
         return;
 
-    GITypeTag type_tag = g_type_info_get_tag (type_info);
+    type_tag = g_type_info_get_tag (type_info);
 
     if (retval == NULL)
         return;


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