Mark `help' and `version' functions as not returning.
[disorder] / server / dbupgrade.c
index e44b7f5..220fb76 100644 (file)
@@ -48,7 +48,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-dbupgrade [OPTIONS]\n"
          "Options:\n"