[libwnck/wip/warnings: 4/6] fix 'declaration of xxx shadows a parameter' warnings



commit b46cbd29a72def689343731a7f821be65e7fd3fe
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Thu Apr 27 10:27:22 2017 +0300

    fix 'declaration of xxx shadows a parameter' warnings

 libwnck/tasklist.c |    8 ++++----
 libwnck/wnckprop.c |    2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/libwnck/tasklist.c b/libwnck/tasklist.c
index bcd9552..1ac68c1 100644
--- a/libwnck/tasklist.c
+++ b/libwnck/tasklist.c
@@ -2691,15 +2691,15 @@ wnck_tasklist_activate_next_in_class_group (WnckTask *task,
   l = task->windows;
   while (l)
     {
-      WnckTask *task;
+      WnckTask *tmp;
 
-      task = WNCK_TASK (l->data);
+      tmp = WNCK_TASK (l->data);
 
-      if (wnck_window_is_most_recently_activated (task->window))
+      if (wnck_window_is_most_recently_activated (tmp->window))
         activate_next = TRUE;
       else if (activate_next)
         {
-          activate_task = task;
+          activate_task = tmp;
           break;
         }
 
diff --git a/libwnck/wnckprop.c b/libwnck/wnckprop.c
index 0ab56c3..5134c37 100644
--- a/libwnck/wnckprop.c
+++ b/libwnck/wnckprop.c
@@ -1754,7 +1754,7 @@ handle_button_press_event (Display *dpy, XIDeviceEvent *event)
 
 static GdkFilterReturn
 target_filter (GdkXEvent *gdk_xevent,
-               GdkEvent  *event,
+               GdkEvent  *gdk_event,
                gpointer   data)
 {
   XEvent *xevent = (XEvent *) gdk_xevent;


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