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/openbox.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbox/openbox.h') diff --git a/openbox/openbox.h b/openbox/openbox.h index 2a938c5d..b2e9c4cb 100644 --- a/openbox/openbox.h +++ b/openbox/openbox.h @@ -58,7 +58,7 @@ void ob_exit_replace(void); void ob_reconfigure(void); -void ob_exit_with_error(const gchar *msg); +void ob_exit_with_error(const gchar *msg) G_GNUC_NORETURN; Cursor ob_cursor(ObCursor cursor); -- cgit v1.2.3