X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/005ca69772d476116a262981090fde24162a1341..16bf32dcea05c64ff2ab831569be9a91c979a1b6:/server/gstdecode.c?ds=sidebyside diff --git a/server/gstdecode.c b/server/gstdecode.c index 42ccd7c..1f4d7a2 100644 --- a/server/gstdecode.c +++ b/server/gstdecode.c @@ -35,11 +35,13 @@ #include #include -/* The only application we have for `attribute' is declaring function +/* The only applications we have for `attribute' is declaring function * arguments as being unused, because we have a lot of callback functions - * which are meant to comply with an externally defined interface. + * which are meant to comply with an externally defined interface; and + * marking `help' as not returning. */ #ifdef __GNUC__ +# define NORETURN __attribute__((noreturn)) # define UNUSED __attribute__((unused)) #endif @@ -533,7 +535,7 @@ static const struct option options[] = { { 0, 0, 0, 0 } }; -static void help(void) +static void NORETURN help(void) { xprintf("Usage:\n" " disorder-gstdecode [OPTIONS] PATH\n"