]> git.sur5r.net Git - i3/i3/commitdiff
fix small warnings when compiling with DEBUG=0
authorMichael Stapelberg <michael@stapelberg.de>
Mon, 14 Mar 2011 22:17:52 +0000 (23:17 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Mon, 14 Mar 2011 22:17:52 +0000 (23:17 +0100)
include/data.h
src/main.c
src/move.c

index e10b868047e25d750a5fc19c606dbaf90ce7d198..7cbf3dd66ce18c26db049c3db01fdef67b7ee43f 100644 (file)
@@ -177,8 +177,6 @@ struct Font {
     int height;
     /** The xcb-id for the font */
     xcb_font_t id;
-
-    TAILQ_ENTRY(Font) fonts;
 };
 
 
index eb17322152a0695b6f024ce2175c0b3dd616f75f..9ab578d1968535071c65c99ca6b8c61cd4433529 100644 (file)
@@ -145,7 +145,7 @@ int main(int argc, char *argv[]) {
     char *override_configpath = NULL;
     bool autostart = true;
     char *layout_path = NULL;
-    bool delete_layout_path;
+    bool delete_layout_path = false;
     bool only_check_config = false;
     bool force_xinerama = false;
     bool disable_signalhandler = false;
index 955cb6b09824b09f2627bdd213e01d3bcaf2e598..caa23eafe6b92230ab85e40ce4c0c00ba81aa594 100644 (file)
@@ -153,7 +153,7 @@ void tree_move(int direction) {
     if (direction == TOK_UP || direction == TOK_LEFT) {
         position = BEFORE;
         next = TAILQ_PREV(above, nodes_head, nodes);
-    } else if (direction == TOK_DOWN || direction == TOK_RIGHT) {
+    } else {
         position = AFTER;
         next = TAILQ_NEXT(above, nodes);
     }