diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-11 23:17:31 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-11 23:21:08 -0800 |
commit | 3c66627ec29473110432ed9d5448850ca4a293bb (patch) | |
tree | 1d3d9ba28723a9baa256496f1d00ffb62babc80c /dsimple.h | |
parent | 1dd99ee7d52871c998d0944311260623d131521f (diff) |
Add function attributes suggested by gcc warnings
Mark usage() with _X_NORETURN
Mark Fatal_Error() with _X_ATTRIBUTE_PRINTF
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'dsimple.h')
-rw-r--r-- | dsimple.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |