From 3c66627ec29473110432ed9d5448850ca4a293bb Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 11 Nov 2011 23:17:31 -0800 Subject: Add function attributes suggested by gcc warnings Mark usage() with _X_NORETURN Mark Fatal_Error() with _X_ATTRIBUTE_PRINTF Signed-off-by: Alan Coopersmith --- dsimple.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dsimple.h b/dsimple.h index 6ef852a..0ecd10f 100644 --- a/dsimple.h +++ b/dsimple.h @@ -62,9 +62,9 @@ extern int screen; /* The current screen */ void Setup_Display_And_Screen(int *, char **); void Close_Display(void); -void usage(void); +void usage(void) _X_NORETURN; #define X_USAGE "[host:display]" /* X arguments handled by Get_Display_Name */ -void Fatal_Error(const char *, ...) _X_NORETURN; +void Fatal_Error(const char *, ...) _X_NORETURN _X_ATTRIBUTE_PRINTF(1,2); -- cgit v1.2.3