chiark / gitweb /
Mark `help' and `version' functions as not returning.
[disorder] / libtests / test.c
index 3270d470ab47e9d0393bf0925140136e5ff5bc7f..86a6184d5bed77fee55a89ae3a9866f30f1b4f9c 100644 (file)
@@ -148,7 +148,7 @@ static const struct option options[] = {
 };
 
 /* display usage message and terminate */
-static void help(void) {
+static void attribute((noreturn)) help(void) {
   xprintf("Usage:\n"
          "  %s [OPTIONS]\n"
          "Options:\n"