From 0442de1f7c7aa07416df092645bc0c18dcb61cba Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Fri, 6 May 2016 22:18:30 +0200 Subject: [PATCH] stinit: mark usage() as non-returning So that we don't have to fake it's non-returnness. --- stinit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stinit.c b/stinit.c index 473891d..6368dec 100644 --- a/stinit.c +++ b/stinit.c @@ -89,6 +89,8 @@ static char *tape_name_bases[] = { "st", "nst", "rmt", "nrmt", "tape", NULL }; /* The list of standard definition files being searched */ static char *std_databases[] = { "/etc/stinit.def", NULL }; +static char usage(int retval) __attribute__((noreturn)); + static FILE *open_database(char *base) { int i; @@ -901,7 +903,6 @@ int main(int argc, char **argv) for (; argn < argc; argn++) { if (*argv[argn] == '-') { usage(1); - return 1; /* Never executed but makes gcc happy */ } else if (isdigit(*argv[argn])) { tapeno = strtol(argv[argn], &convp, 0); if (*argv[argn] != '\0' && *convp != '\0') {