diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2022-03-15 17:35:34 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2022-03-15 17:35:34 -0400 |
commit | 445576afb85c66247665835c81aaffc47418d476 (patch) | |
tree | 988518bdf02377fd25d59235de874c508207293b | |
parent | 10d5f1295a714f7d3bda40ee5f96930dec4f99a4 (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 ac72cd3a..4e433fd3 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); } |