Commit Diff
Diff:
68fbe433d63bf7a6d23151a159d8db39544fba1b
28d59ae943de01aa2ff790776c0a3c078fb7bc7d
Commit:
28d59ae943de01aa2ff790776c0a3c078fb7bc7d
Tree:
88b730aa924f8acac43dd8d10cd7fd5f815c1938
Author:
Omar Polo <op@omarpolo.com>
Date:
Mon Feb 15 19:34:41 2021 UTC
Message:
replace __dead with an __attribute__

__dead seems to be too OpenBSD-specific.
commit - 68fbe433d63bf7a6d23151a159d8db39544fba1b
commit + 28d59ae943de01aa2ff790776c0a3c078fb7bc7d
blob - ffdcdd072709c3c67022508a7cc46e18bbf6e251
blob + bd1aa8ebcc8bc3e2680145c71cd76afb7de20070
--- toxe.c
+++ toxe.c
@@ -1056,8 +1056,9 @@ parse_testmode()
return 0;
}
-__dead void
+void
usage(const char *me, int s)
+ __attribute__((__noreturn__))
{
fprintf(stderr, "USAGE: %s [-B boostrap] [-s savepath] [-T test-mode]\n", me);
exit(s);
blob - da2e6d713b69d56f4d04db71351f97d9516bce53
blob + 431f536418a0ccb0ba9bb269dff008c47b046db0
--- toxe.h
+++ toxe.h
@@ -115,7 +115,8 @@ int process_plist(Tox*, struct cons*);
int process_stdin(Tox*);
void add_bootstrap(const char*);
int parse_testmode();
-__dead void usage(const char*, int);
+void usage(const char*, int)
+ __attribute__((__noreturn__));
/* utf8.c */
Omar Polo