From 2b73d80e5403236cd782087ca8c3504269f3b111 Mon Sep 17 00:00:00 2001 From: Sascha Kruse Date: Mon, 8 Oct 2012 09:29:06 +0200 Subject: [PATCH] add assert to get rid of false-positive scan-build warning --- dunst.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dunst.c b/dunst.c index e90b1b2..e645eeb 100644 --- a/dunst.c +++ b/dunst.c @@ -1194,6 +1194,7 @@ int select_screen(XineramaScreenInfo * info, int info_len) } else { int x, y; + assert(f_mode == FOLLOW_MOUSE || f_mode == FOLLOW_KEYBOARD); Window root = RootWindow(dc->dpy, DefaultScreen(dc->dpy)); if (f_mode == FOLLOW_MOUSE) {