diff --git a/fexc.c b/fexc.c index 15aba3d..5e715d7 100644 --- a/fexc.c +++ b/fexc.c @@ -310,6 +310,7 @@ show_usage: switch (argc - optind) { case 2: filename[1] = argv[optind+1]; /* out */ + /* fall-through */ case 1: if (strcmp(argv[optind], "-") != 0) filename[0] = argv[optind]; /* in */ diff --git a/pio.c b/pio.c index 0e6afd0..09cfaf8 100644 --- a/pio.c +++ b/pio.c @@ -165,7 +165,7 @@ static void print(const char *buf) static const char *argv0; -static void usage(int rc ) +static __attribute__((noreturn)) void usage(int rc ) { fputs("sunxi-pio " VERSION "\n\n", stderr); fprintf(stderr, "usage: %s -m|-i input [-o output] pin..\n", argv0);