diff options
author | cperciva <cperciva@FreeBSD.org> | 2008-08-04 01:25:48 +0000 |
---|---|---|
committer | cperciva <cperciva@FreeBSD.org> | 2008-08-04 01:25:48 +0000 |
commit | 45f0d08992efea87dbc15433e392afdeabec2270 (patch) | |
tree | 229041eea5ad591ae2c140ea64950ea8a82735f1 /libexec/fingerd | |
parent | a5c1d60642f3e26278563bd545199cd3f6d6e962 (diff) | |
download | FreeBSD-src-45f0d08992efea87dbc15433e392afdeabec2270.zip FreeBSD-src-45f0d08992efea87dbc15433e392afdeabec2270.tar.gz |
Mark functions as __dead2 in order to help the LLVM static checker
understand which code paths aren't possible.
This commit eliminates 117 false positive bug reports of the form
"allocate memory; error out if pointer is NULL; use pointer".
Diffstat (limited to 'libexec/fingerd')
-rw-r--r-- | libexec/fingerd/fingerd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/fingerd/fingerd.c b/libexec/fingerd/fingerd.c index 0979c64..7d2a754 100644 --- a/libexec/fingerd/fingerd.c +++ b/libexec/fingerd/fingerd.c @@ -62,7 +62,7 @@ static const char rcsid[] = #include <string.h> #include "pathnames.h" -void logerr(const char *, ...) __printflike(1, 2); +void logerr(const char *, ...) __printflike(1, 2) __dead2; int main(int argc, char *argv[]) |