From 341560ecf2b09cea4419aef8f191735028756423 Mon Sep 17 00:00:00 2001 From: Aaron Jones Date: Wed, 1 Jun 2016 20:03:52 +0000 Subject: [PATCH] getopt: a function that calls exit(3) should be marked noreturn --- include/ircd_getopt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ircd_getopt.h b/include/ircd_getopt.h index 9ffeb76d..bd41cbe8 100644 --- a/include/ircd_getopt.h +++ b/include/ircd_getopt.h @@ -37,7 +37,7 @@ struct lgetopt extern struct lgetopt myopts[]; -void usage(const char *); +void usage(const char *) __attribute__((noreturn)); void parseargs(int *, char * const **, struct lgetopt *); #endif /* __GETOPT_H_INCLUDED__ */