[PATCH 6/9] xwayland: declare fatal log handler as noreturn

Peter Hutterer peter.hutterer at who-t.net
Thu Oct 30 16:52:43 PDT 2014


xwayland.c:661:1: warning: function 'xwl_log_handler' could be declared with
attribute 'noreturn' [-Wmissing-noreturn]

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 hw/xwayland/xwayland.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/xwayland/xwayland.c b/hw/xwayland/xwayland.c
index 9132969..37d6d82 100644
--- a/hw/xwayland/xwayland.c
+++ b/hw/xwayland/xwayland.c
@@ -656,6 +656,7 @@ xwl_screen_init(ScreenPtr pScreen, int argc, char **argv)
     return ret;
 }
 
+_X_NORETURN
 static void _X_ATTRIBUTE_PRINTF(1, 0)
 xwl_log_handler(const char *format, va_list args)
 {
-- 
2.1.0



More information about the xorg-devel mailing list