summaryrefslogtreecommitdiff
path: root/xclock.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-07-18 20:59:01 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-07-18 20:59:01 -0700
commit61f95e11eef3fbfb9060a32233df13c35115a6f3 (patch)
treec8d9ced1bb2d1307dfa4fdd67168d73e996ed2c2 /xclock.c
parent52bbd1ce31f1adf2b7145b9d6183f6b866fa9301 (diff)
Add noreturn attributes suggested by -Wmissing-noreturn
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xclock.c')
-rw-r--r--xclock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xclock.c b/xclock.c
index 5965a83..3b56117 100644
--- a/xclock.c
+++ b/xclock.c
@@ -100,7 +100,7 @@ static Atom wm_delete_window;
/*
* Report the syntax for calling xclock.
*/
-static void
+static void _X_NORETURN
Syntax(char *call)
{
(void) printf ("Usage: %s [-analog] [-bw <pixels>] [-digital] [-brief]\n", call);
@@ -116,7 +116,7 @@ Syntax(char *call)
exit(1);
}
-static void
+static void _X_NORETURN
die(Widget w, XtPointer client_data, XtPointer call_data)
{
XCloseDisplay(XtDisplayOfObject(w));