[Xfce4-commits] <xfce4-panel:devel> Fix a compiler warnings.

Nick Schermer noreply at xfce.org
Mon Feb 22 12:08:01 CET 2010


Updating branch refs/heads/devel
         to c9d2548e8179d7c28513a041d7c765449d0721e6 (commit)
       from 839ae63e43cb5920fcbcc4c4049fb3ff8a60ca30 (commit)

commit c9d2548e8179d7c28513a041d7c765449d0721e6
Author: Nick Schermer <nick at xfce.org>
Date:   Sun Feb 21 17:21:59 2010 +0100

    Fix a compiler warnings.

 panel/panel-window.c               |    2 +-
 plugins/tasklist/tasklist-widget.c |    3 +++
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/panel/panel-window.c b/panel/panel-window.c
index 5397343..156e2c2 100644
--- a/panel/panel-window.c
+++ b/panel/panel-window.c
@@ -1460,7 +1460,7 @@ panel_window_screen_force_update (PanelWindow *window)
 static void
 panel_window_screen_update_borders (PanelWindow *window)
 {
-  PanelBorders borders;
+  PanelBorders borders = PANEL_BORDER_NONE;
 
   panel_return_if_fail (PANEL_IS_WINDOW (window));
 
diff --git a/plugins/tasklist/tasklist-widget.c b/plugins/tasklist/tasklist-widget.c
index 79684cd..2a1d927 100644
--- a/plugins/tasklist/tasklist-widget.c
+++ b/plugins/tasklist/tasklist-widget.c
@@ -843,6 +843,9 @@ xfce_tasklist_size_allocate (GtkWidget     *widget,
   area_x = area.x;
   area_width = area.width;
 
+  /* useless but hides compiler warning */
+  w = h = x = y = rows = cols = 0;
+
   /* allocate all the children */
   for (li = tasklist->windows, i = 0; li != NULL; li = li->next)
     {



More information about the Xfce4-commits mailing list