You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Use noreturn for usage_exit
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user