ref: 570d83b73c770547e15a9c63d35588b09cc23f1f
parent: e17557706a0ad7653264d3dc4b25a74744f4ab26
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Tue Mar 15 13:35:30 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);
}