[gtk+] paned: Fix compiler warnings



commit 9bb121c55d005c23ef3a1c482ce28178f0e3d661
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat May 30 21:27:57 2015 -0400

    paned: Fix compiler warnings
    
    Fix warnings due to -Wdeclaration-after-statement and -Wshadow.

 gtk/gtkpaned.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c
index 31c8b96..bf65ddc 100644
--- a/gtk/gtkpaned.c
+++ b/gtk/gtkpaned.c
@@ -2445,7 +2445,7 @@ gtk_paned_get_cycle_chain (GtkPaned          *paned,
   /* Walk the list and expand all the paned widgets. */
   for (list = temp_list; list != NULL; list = list->next)
     {
-      GtkWidget *widget = list->data;
+      widget = list->data;
 
       if (widget)
        {
@@ -2773,7 +2773,6 @@ gtk_paned_cycle_handle_focus (GtkPaned *paned,
       GtkContainer *container = GTK_CONTAINER (paned);
       GtkPaned *focus;
       GtkPaned *first;
-      GtkPaned *prev, *next;
       GtkWidget *toplevel;
       GtkWidget *focus_child;
 


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