From fa0ae17adbc8f73b707c33836d37841e81b9303a Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Thu, 5 Nov 2009 22:29:38 +0100 Subject: 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 --- openbox/actions/desktop.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'openbox/actions/desktop.c') diff --git a/openbox/actions/desktop.c b/openbox/actions/desktop.c index 50caa22f..3b33afbd 100644 --- a/openbox/actions/desktop.c +++ b/openbox/actions/desktop.c @@ -179,6 +179,8 @@ static gboolean run_func(ObActionsData *data, gpointer options) d = screen_find_desktop(screen_desktop, o->u.rel.dir, o->u.rel.wrap, o->u.rel.linear); break; + default: + g_assert_not_reached(); } if (d < screen_num_desktops && d != screen_desktop) { -- cgit v1.2.3