chiark / gitweb /
Mark `help' and `version' functions as not returning.
[disorder] / server / stats.c
index 1ac1cd7a037ff2534b07abbbb0901fe7d9408789..ac3737451875f396f3d1711c453fbe2fe9d21198 100644 (file)
@@ -36,7 +36,7 @@ static const struct option options[] = {
 };
 
 /* display usage message and terminate */
-static void help(void) {
+static void attribute((noreturn)) help(void) {
   xprintf("Usage:\n"
          "  disorder-stats [OPTIONS]\n"
          "Options:\n"