diff options
| author | Ian Zimmerman <itz@buug.org> | 2013-08-17 15:13:05 -0700 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2013-09-01 15:09:03 -0400 |
| commit | 9750e5cea8d8cdab2b8b988a8c5d6392b0dbeae8 (patch) | |
| tree | 605417f2f155b7f318986c5d0eb9046ddbe62887 | |
| parent | 0afb5b28c63651c1e598bbd4d88c60ac0b478567 (diff) | |
Fix gcc warnings
| -rw-r--r-- | obrender/test.c | 2 | ||||
| -rw-r--r-- | openbox/client.c | 2 | ||||
| -rw-r--r-- | openbox/screen.c | 3 |
3 files changed, 3 insertions, 4 deletions
diff --git a/obrender/test.c b/obrender/test.c index 55ab621e..7290c220 100644 --- a/obrender/test.c +++ b/obrender/test.c @@ -46,7 +46,6 @@ gint main() RrAppearance *look; int done; - Window root; XEvent report; gint h = 500, w = 500; @@ -64,7 +63,6 @@ gint main() 0); /* attributes */ XMapWindow(ob_display, win); XSelectInput(ob_display, win, ExposureMask | StructureNotifyMask); - root = RootWindow (ob_display, DefaultScreen (ob_display)); inst = RrInstanceNew(ob_display, ob_screen); look = RrAppearanceNew(inst, 0); diff --git a/openbox/client.c b/openbox/client.c index 88b08f9f..c97abd5a 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -218,7 +218,7 @@ void client_manage(Window window, ObPrompt *prompt) Time launch_time; guint32 user_time; gboolean obplaced; - gulong ignore_start; + gulong ignore_start = FALSE; ob_debug("Managing window: 0x%lx", window); diff --git a/openbox/screen.c b/openbox/screen.c index 33acb4a1..9295194e 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -1327,8 +1327,9 @@ typedef struct { static void get_xinerama_screens(Rect **xin_areas, guint *nxin) { guint i; - gint n, l, r, t, b; + gint l, r, t, b; #ifdef XINERAMA + gint n; XineramaScreenInfo *info; #endif |
