diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2022-03-15 17:35:35 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2022-03-15 17:35:35 -0400 |
commit | 9aac39bebc6fbb1f7442e9efadf88e2bfcd13a01 (patch) | |
tree | 689362f2c5322d620781e0a9304bbc0762956f4f | |
parent | 1ba73f225c0aac97cb35fbf7f2c191e5396f3a4f (diff) |
Use noreturn for usage_exit
-rw-r--r-- | tools/common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/common.h b/tools/common.h index ac72cd3ad..4e433fd33 100644 --- a/tools/common.h +++ b/tools/common.h @@ -21,7 +21,7 @@ #define error_exit(...) exit((fprintf(stderr, PROGRAM_NAME ": " __VA_ARGS__), 1)) -void usage_exit(int status) { +noreturn void usage_exit(int status) { fprintf(stderr, "Usage: " PROGRAM_NAME " " USAGE_OPTS "\n"); exit(status); } |