From 76e978bfb3f0c1b0c6c9ca8cda215e3a761ca421 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 14 Mar 2011 23:17:52 +0100 Subject: [PATCH] fix small warnings when compiling with DEBUG=0 --- include/data.h | 2 -- src/main.c | 2 +- src/move.c | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/data.h b/include/data.h index e10b8680..7cbf3dd6 100644 --- a/include/data.h +++ b/include/data.h @@ -177,8 +177,6 @@ struct Font { int height; /** The xcb-id for the font */ xcb_font_t id; - - TAILQ_ENTRY(Font) fonts; }; diff --git a/src/main.c b/src/main.c index eb173221..9ab578d1 100644 --- a/src/main.c +++ b/src/main.c @@ -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; diff --git a/src/move.c b/src/move.c index 955cb6b0..caa23eaf 100644 --- a/src/move.c +++ b/src/move.c @@ -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); }