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 | 90597773cdd25fc28a9149900be50d000bb311b5 (patch) | |
tree | 9a1daa9a77dfed48b2793acc96958a181f7cc2ed | |
parent | 6fde066264e5cb784470e05c0ab6acbb16057bbc (diff) | |
download | src-90597773cdd25fc28a9149900be50d000bb311b5.tar.gz src-90597773cdd25fc28a9149900be50d000bb311b5.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-- | tools/regression/sysvshm/shmtest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/regression/sysvshm/shmtest.c b/tools/regression/sysvshm/shmtest.c index c3e5962d9fa1..c84ddfd7657d 100644 --- a/tools/regression/sysvshm/shmtest.c +++ b/tools/regression/sysvshm/shmtest.c @@ -54,7 +54,7 @@ static void sigsys_handler(int); static void sigchld_handler(int); static void cleanup(void); static void receiver(void); -static void usage(void); +static void usage(void) __dead2; static const char *m_str = "The quick brown fox jumped over the lazy dog."; |