diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-01-13 12:25:45 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-01-13 12:25:45 -0800 |
commit | 701d5f797a77ba3b3ff2d8c25b7951563d7e4363 (patch) | |
tree | e8810b20d2581b97d766f0ec32098dcb37b1a963 /xstdcmap.c | |
parent | 4b994408d260eb90d8c65739bc3cd6d56037b10a (diff) |
Mark Exit() & usage() with _X_NORETURN, cleanup previous workarounds
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xstdcmap.c')
-rw-r--r-- | xstdcmap.c | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -180,7 +180,7 @@ parse(int argc, char **argv) verbose++; } -static void +static void _X_NORETURN Exit(Status status) { if (dpy) @@ -188,7 +188,7 @@ Exit(Status status) exit(status); } -static void +static void _X_NORETURN usage(Status status) { register char **i; @@ -347,10 +347,6 @@ main(int argc, char *argv[]) if (help) { usage(0); - Exit(0); - - /* Muffle gcc */ - return 0; } if (all) { @@ -370,6 +366,4 @@ main(int argc, char *argv[]) "Not all new colormap definitions will be retained.\n"); } Exit((status == 0) ? 1 : 0); - /* Muffle compiler */ - return 0; } |