summaryrefslogtreecommitdiff
path: root/dsimple.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-11 23:17:31 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-11 23:21:08 -0800
commit3c66627ec29473110432ed9d5448850ca4a293bb (patch)
tree1d3d9ba28723a9baa256496f1d00ffb62babc80c /dsimple.h
parent1dd99ee7d52871c998d0944311260623d131521f (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.h4
1 files 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);