[pygobject] Drop unused variable, fail builds on those



commit 37270de8ead0b281a1824ff204a4aa9686a7225b
Author: Martin Pitt <martinpitt gnome org>
Date:   Wed Nov 7 16:50:07 2012 +0100

    Drop unused variable, fail builds on those
    
    Build with -Werror=unused-variable, as these could hide programming errors or
    incomplete refactoring, and are not platform dependent.
    
    Drop unused variable in pyg_type_add_interfaces().

 configure.ac                |    1 +
 gi/_gobject/gobjectmodule.c |    1 -
 2 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 0650f6e..773cc66 100644
--- a/configure.ac
+++ b/configure.ac
@@ -236,6 +236,7 @@ if test "x$GCC" = "xyes"; then
   JH_ADD_CFLAG([-Werror=format-security])
   JH_ADD_CFLAG([-Werror=missing-include-dirs])
   JH_ADD_CFLAG([-Werror=format])
+  JH_ADD_CFLAG([-Werror=unused-variable])
   JH_ADD_CFLAG([-fno-strict-aliasing])
 
   case $host_os in
diff --git a/gi/_gobject/gobjectmodule.c b/gi/_gobject/gobjectmodule.c
index 6c3aa5f..8919ba6 100644
--- a/gi/_gobject/gobjectmodule.c
+++ b/gi/_gobject/gobjectmodule.c
@@ -1063,7 +1063,6 @@ pyg_type_add_interfaces(PyTypeObject *class, GType instance_type,
     }
 
     for (i = 0; i < PyTuple_GET_SIZE(bases); ++i) {
-        guint k;
         PyObject *base = PyTuple_GET_ITEM(bases, i);
         GType itype;
         const GInterfaceInfo *iinfo;



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