ref: 9aac39bebc6fbb1f7442e9efadf88e2bfcd13a01
parent: 1ba73f225c0aac97cb35fbf7f2c191e5396f3a4f
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Tue Mar 15 13:35:35 EDT 2022
Use noreturn for usage_exit
--- 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);
}