mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
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))
|
#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");
|
fprintf(stderr, "Usage: " PROGRAM_NAME " " USAGE_OPTS "\n");
|
||||||
exit(status);
|
exit(status);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user