chiark / gitweb /
Mark `help' and `version' functions as not returning.
[disorder] / clients / disorderfm.c
index 14092dad74b1c9aa90d0586a6f237145d4ddb0d1..55aff3e4ba27ef9106f73e447f4deba46410f67e 100644 (file)
@@ -102,7 +102,7 @@ static const struct option options[] = {
 };
 
 /* display usage message and terminate */
-static void help(void) {
+static void attribute((noreturn)) help(void) {
   xprintf("Usage:\n"
 "  disorderfm [OPTIONS] SOURCE DESTINATION\n"
 "Options:\n"