diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2022-03-15 17:35:30 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2022-03-15 17:35:30 -0400 |
commit | 570d83b73c770547e15a9c63d35588b09cc23f1f (patch) | |
tree | 1eafb81956060cee6cabe853d6c7455aa0c90f49 | |
parent | e17557706a0ad7653264d3dc4b25a74744f4ab26 (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 38b7cc6d..f04e917b 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); } |