Mark `help' and `version' functions as not returning.
[disorder] / server / stats.c
index 1ac1cd7..ac37374 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"