Mark functions as __dead2 in order to help the LLVM static checker

understand which code paths aren't possible.

Reported by:	edwin
This commit is contained in:
Colin Percival 2008-08-04 07:36:53 +00:00
parent ff1782127a
commit 80d61a6a48
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=181283

View file

@ -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, ...)