mirror of https://github.com/pret/pokecrystal.git
Use noreturn for usage_exit
This commit is contained in:
parent
1ba73f225c
commit
9aac39bebc
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue