diff options
author | Russ Allbery <eagle@eyrie.org> | 2018-04-22 20:50:00 -0700 |
---|---|---|
committer | Russ Allbery <eagle@eyrie.org> | 2018-04-22 20:50:00 -0700 |
commit | 9b8536991719cab3b8636f3b7c924d5bbe37d28a (patch) | |
tree | bd57e1ed38516bbb8eec2df8dd8c17a6ae15f0aa /client | |
parent | 3f59a8928f819a034f9c69826fc67305be0546e3 (diff) |
Fix warnings under Clang
Flesh out support for Clang warnings and compile cleanly under Clang
with most warnings enabled (-Weverything with some exclusions).
Diffstat (limited to 'client')
-rw-r--r-- | client/remctl.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/client/remctl.c b/client/remctl.c index 4625283..025e379 100644 --- a/client/remctl.c +++ b/client/remctl.c @@ -41,7 +41,7 @@ Options:\n\ /* * Display the usage message for remctl. */ -static void +static void __attribute__((__noreturn__)) usage(int status) { fprintf((status == 0) ? stdout : stderr, "%s", usage_message); @@ -149,7 +149,6 @@ main(int argc, char *argv[]) break; case 'h': usage(0); - break; case 'p': tmp_port = strtol(optarg, &end, 10); if (*end != '\0' || tmp_port < 1 || tmp_port > (1L << 16) - 1) @@ -162,14 +161,11 @@ main(int argc, char *argv[]) case 'v': printf("%s\n", PACKAGE_STRING); exit(0); - break; case '+': fprintf(stderr, "%s: invalid option -- +\n", argv[0]); usage(1); - break; default: usage(1); - break; } } argc -= optind; |