Code

collectdctl: mark as exit_usage as noreturn
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 5 Mar 2016 16:39:47 +0000 (17:39 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 5 Mar 2016 16:39:47 +0000 (17:39 +0100)
src/collectdctl.c

index febc99833aaa917f084e4d606e34a84c70b90fb4..7d3cbce8c1551ca062c199882fb87b576e8e97e8 100644 (file)
@@ -72,6 +72,7 @@
 extern char *optarg;
 extern int   optind;
 
+__attribute__((noreturn))
 static void exit_usage (const char *name, int status) {
   fprintf ((status == 0) ? stdout : stderr,
       "Usage: %s [options] <command> [cmd options]\n\n"