summaryrefslogtreecommitdiff
path: root/openbox/stacking.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2009-11-05 22:29:38 +0100
committerDana Jansens <danakj@orodu.net>2009-11-07 17:07:05 -0500
commitfa0ae17adbc8f73b707c33836d37841e81b9303a (patch)
treedc6aaf1f7cd386f3d0c0862bd9985486c9b58aca /openbox/stacking.c
parenta170ad7c85b5f23fafe64d28a3f183a7ce42ce53 (diff)
Make clang happier
Add asserts to default: in switch statements Store pointed to variables locally so it knows they don't change Remove some dead assignments Mark ob_exit_with_error as noreturn Use "%s", msg instead of just msg to printf style functions Use the c_pfocus variable
Diffstat (limited to 'openbox/stacking.c')
-rw-r--r--openbox/stacking.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbox/stacking.c b/openbox/stacking.c
index 3c05df49..2a34f71d 100644
--- a/openbox/stacking.c
+++ b/openbox/stacking.c
@@ -69,6 +69,8 @@ static void do_restack(GList *wins, GList *before)
#ifdef DEBUG
GList *next;
+
+ g_assert(wins);
/* pls only restack stuff in the same layer at a time */
for (it = wins; it; it = next) {
next = g_list_next(it);