aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/tr
diff options
context:
space:
mode:
authorAlfonso Gregory <gfunni234@gmail.com>2023-07-07 16:39:23 +0000
committerWarner Losh <imp@FreeBSD.org>2023-07-07 16:45:18 +0000
commitcccdaf507eee8fb34494b4624eb85bb951e323c8 (patch)
treefe301035b431f914fc8708a9b7a351d31c35d1ba /usr.bin/tr
parent1a7ac2bd24c1763b0d32e23d9c70308fbc24b07a (diff)
downloadsrc-cccdaf507eee8fb34494b4624eb85bb951e323c8.tar.gz
src-cccdaf507eee8fb34494b4624eb85bb951e323c8.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
Diffstat (limited to 'usr.bin/tr')
-rw-r--r--usr.bin/tr/tr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/tr/tr.c b/usr.bin/tr/tr.c
index 2d1baad2ac09..32f1858049ac 100644
--- a/usr.bin/tr/tr.c
+++ b/usr.bin/tr/tr.c
@@ -67,7 +67,7 @@ static STR s1 = { STRING1, NORMAL, 0, OOBCH, 0, { 0, OOBCH }, NULL, NULL };
static STR s2 = { STRING2, NORMAL, 0, OOBCH, 0, { 0, OOBCH }, NULL, NULL };
static struct cset *setup(char *, STR *, int, int);
-static void usage(void);
+static void usage(void) __dead2;
int
main(int argc, char **argv)