diff options
author | Alfonso Gregory <gfunni234@gmail.com> | 2023-07-07 16:39:23 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2023-07-07 16:45:17 +0000 |
commit | 6fde066264e5cb784470e05c0ab6acbb16057bbc (patch) | |
tree | a8e1f9c935de6dfc618f49c9c1365112513882b1 | |
parent | 6d099821455df24fcf5b88ba0d83cccf822d970b (diff) | |
download | src-6fde066264e5cb784470e05c0ab6acbb16057bbc.tar.gz src-6fde066264e5cb784470e05c0ab6acbb16057bbc.zip |
Mark usage function as __dead2 in programs where it does not return
In most cases, usage does not return, so mark them as __dead2. For the
cases where they do return, they have not been marked __dead2.
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/735
-rw-r--r-- | tests/sys/cddl/zfs/bin/file_write.c | 2 | ||||
-rw-r--r-- | tests/sys/netinet/libalias/perf.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/sys/cddl/zfs/bin/file_write.c b/tests/sys/cddl/zfs/bin/file_write.c index b1ef836879e6..07ba6503dff8 100644 --- a/tests/sys/cddl/zfs/bin/file_write.c +++ b/tests/sys/cddl/zfs/bin/file_write.c @@ -38,7 +38,7 @@ static unsigned char bigbuffer[BIGBUFFERSIZE]; * See header file for defaults. */ -static void usage(void); +static void usage(void) __dead2; static char *execname; int diff --git a/tests/sys/netinet/libalias/perf.c b/tests/sys/netinet/libalias/perf.c index f238846bdb16..07e73612a6dd 100644 --- a/tests/sys/netinet/libalias/perf.c +++ b/tests/sys/netinet/libalias/perf.c @@ -38,7 +38,7 @@ #include "util.h" #include <alias.h> -static void usage(void); +static void usage(void) __dead2; #define timevalcmp(tv, uv, cmp) \ (((tv).tv_sec == (uv).tv_sec) \ |