chiark / gitweb /
Mark `help' and `version' functions as not returning.
[disorder] / server / speaker.c
index a55b074905828adf4cce6e0228743d809d9c283e..0cc3ac4ff589ed71319911dd455aeb46c8d9d536 100644 (file)
@@ -235,7 +235,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-speaker [OPTIONS]\n"
          "Options:\n"