add assert to get rid of false-positive scan-build warning
This commit is contained in:
parent
4f39381db9
commit
2b73d80e54
1
dunst.c
1
dunst.c
@ -1194,6 +1194,7 @@ int select_screen(XineramaScreenInfo * info, int info_len)
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
int x, y;
|
int x, y;
|
||||||
|
assert(f_mode == FOLLOW_MOUSE || f_mode == FOLLOW_KEYBOARD);
|
||||||
Window root = RootWindow(dc->dpy, DefaultScreen(dc->dpy));
|
Window root = RootWindow(dc->dpy, DefaultScreen(dc->dpy));
|
||||||
|
|
||||||
if (f_mode == FOLLOW_MOUSE) {
|
if (f_mode == FOLLOW_MOUSE) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user