git: 6fde066264e5 - main - Mark usage function as __dead2 in programs where it does not return
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 07 Jul 2023 16:51:06 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=6fde066264e5cb784470e05c0ab6acbb16057bbc
commit 6fde066264e5cb784470e05c0ab6acbb16057bbc
Author: Alfonso Gregory <gfunni234@gmail.com>
AuthorDate: 2023-07-07 16:39:23 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-07-07 16:45:17 +0000
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
---
tests/sys/cddl/zfs/bin/file_write.c | 2 +-
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) \