mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
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:
parent
ff1782127a
commit
80d61a6a48
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=181283
|
@ -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, ...)
|
||||
|
|
Loading…
Reference in a new issue