]> jfr.im git - solanum.git/commitdiff
getopt: a function that calls exit(3) should be marked noreturn
authorAaron Jones <redacted>
Wed, 1 Jun 2016 20:03:52 +0000 (20:03 +0000)
committerAaron Jones <redacted>
Wed, 1 Jun 2016 20:54:12 +0000 (20:54 +0000)
include/ircd_getopt.h

index 9ffeb76da50e1b1799bbdce4eb9c37dcdb2ef3fb..bd41cbe8fe787b386a1c4343bcb67dd272b342aa 100644 (file)
@@ -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__ */