chiark / gitweb /
Mark `help' and `version' functions as not returning.
[disorder] / server / dbupgrade.c
index e44b7f505b8089717d9e509babe5d6192cf06521..220fb767d51cef374ee75a092699ea23eaaeb83a 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"