]> Dogcows Code - chaz/openbox/commitdiff
Fix gcc warnings
authorIan Zimmerman <itz@buug.org>
Sat, 17 Aug 2013 22:13:05 +0000 (15:13 -0700)
committerDana Jansens <danakj@orodu.net>
Sun, 1 Sep 2013 19:09:03 +0000 (15:09 -0400)
obrender/test.c
openbox/client.c
openbox/screen.c

index 55ab621eac39954f92d637a5cc743b9edf806071..7290c2209427ba5a3e87f6707431baf946df820c 100644 (file)
@@ -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);
index 88b08f9f9eb0e30523c7dd1a2809a68bce98e7c8..c97abd5ac184d93428f69a40be7ee64b23dfe20f 100644 (file)
@@ -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);
 
index 33acb4a16a2828f62bcd5bb769807be32f0eeff3..9295194e82048ee3b4548cd6c65661f5830a9939 100644 (file)
@@ -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
 
This page took 0.029424 seconds and 4 git commands to generate.