Skip to content

Commit

Permalink
Use noreturn for usage_exit
Browse files Browse the repository at this point in the history
  • Loading branch information
Rangi42 committed Mar 15, 2022
1 parent 1ba73f2 commit 9aac39b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 9aac39b

Please sign in to comment.