summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorcperciva <cperciva@FreeBSD.org>2008-08-04 07:36:53 +0000
committercperciva <cperciva@FreeBSD.org>2008-08-04 07:36:53 +0000
commit7417f9fd97044a689cd23871fc0fb09b108582d0 (patch)
treef2d5ba78a99d7fabf2bae40bbaf4a28792cf2fea /usr.bin
parentcebedc34981fc20851ec92c818884c42aec0d8ed (diff)
downloadFreeBSD-src-7417f9fd97044a689cd23871fc0fb09b108582d0.zip
FreeBSD-src-7417f9fd97044a689cd23871fc0fb09b108582d0.tar.gz
Mark functions as __dead2 in order to help the LLVM static checker
understand which code paths aren't possible. Reported by: edwin
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/gzip/gzip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/gzip/gzip.c b/usr.bin/gzip/gzip.c
index 67b40ce..5a8e388 100644
--- a/usr.bin/gzip/gzip.c
+++ b/usr.bin/gzip/gzip.c
@@ -195,10 +195,10 @@ static int exit_value = 0; /* exit value */
static char *infile; /* name of file coming in */
-static void maybe_err(const char *fmt, ...)
+static void maybe_err(const char *fmt, ...) __dead2
__attribute__((__format__(__printf__, 1, 2)));
#ifndef NO_BZIP2_SUPPORT
-static void maybe_errx(const char *fmt, ...)
+static void maybe_errx(const char *fmt, ...) __dead2
__attribute__((__format__(__printf__, 1, 2)));
#endif
static void maybe_warn(const char *fmt, ...)
OpenPOWER on IntegriCloud