From 005eb35ee810fbc1edc31a83f298866067be6ef9 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Sat, 19 Aug 2006 05:05:36 +0000 Subject: fix some warnings from -Wall --- openbox/action.c | 1 + openbox/menuframe.c | 2 +- openbox/stacking.c | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) (limited to 'openbox') diff --git a/openbox/action.c b/openbox/action.c index 05a9e640..c0195dd8 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -29,6 +29,7 @@ #include "grab.h" #include "keyboard.h" #include "event.h" +#include "dock.h" #include "config.h" #include "mainloop.h" diff --git a/openbox/menuframe.c b/openbox/menuframe.c index 120f4c38..62a68ae9 100644 --- a/openbox/menuframe.c +++ b/openbox/menuframe.c @@ -23,6 +23,7 @@ #include "screen.h" #include "grab.h" #include "openbox.h" +#include "mainloop.h" #include "config.h" #include "render/theme.h" @@ -189,7 +190,6 @@ void menu_frame_move(ObMenuFrame *self, gint x, gint y) void menu_frame_move_on_screen(ObMenuFrame *self) { Rect *a = NULL; - guint i; gint dx = 0, dy = 0; gint pos, half; diff --git a/openbox/stacking.c b/openbox/stacking.c index 714d2a1c..bedc10c8 100644 --- a/openbox/stacking.c +++ b/openbox/stacking.c @@ -56,11 +56,12 @@ void stacking_set_list() static void do_restack(GList *wins, GList *before) { - GList *it, *next; + GList *it; Window *win; gint i; #ifdef DEBUG + GList *next; /* pls only restack stuff in the same layer at a time */ for (it = wins; it; it = next) { next = g_list_next(it); -- cgit v1.2.3