summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-07-18 23:37:36 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-07-18 23:37:36 -0700
commit51fd2af788ddf81b301f50050cf04e9bcba0f8e3 (patch)
treee5e44095240d799f0d900b34dd6fe1b5bdaea9b0
parent2f6ff61d2edbffdd2949a0546a7df67603462fca (diff)
Add noreturn attribute to usage() as suggested by -Wmissing-noreturn
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xload.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xload.c b/xload.c
index 41a8802..32adcdd 100644
--- a/xload.c
+++ b/xload.c
@@ -139,7 +139,8 @@ static int light_update = 10 * 1000;
* Exit with message describing command line format.
*/
-static void usage(void)
+static void _X_NORETURN
+usage(void)
{
fprintf (stderr, gettext("usage: %s [-options ...]\n\n%s\n"),
ProgramName, gettext(