ref: 4c6a58ee21326ff8249914704ba6043b8b9af239
parent: 66f03cd6b388a7330640b6f592590ac870881d1d
author: Jacob Moody <[email protected]>
date: Sat Mar 18 16:42:18 EDT 2023
we have stdnoreturn.h now
--- a/tools/common.h
+++ b/tools/common.h
@@ -6,6 +6,7 @@
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
+#include <stdnoreturn.h>
#include <inttypes.h>
#include <string.h>
#include <errno.h>
@@ -22,7 +23,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);
}