From f9bcf9cabfc4f147200688700289c31c663caf99 Mon Sep 17 00:00:00 2001 From: Colin Percival Date: Mon, 4 Aug 2008 01:25:48 +0000 Subject: 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". --- libexec/fingerd/fingerd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libexec/fingerd/fingerd.c') diff --git a/libexec/fingerd/fingerd.c b/libexec/fingerd/fingerd.c index 0979c64a504b..7d2a7547893b 100644 --- a/libexec/fingerd/fingerd.c +++ b/libexec/fingerd/fingerd.c @@ -62,7 +62,7 @@ static const char rcsid[] = #include #include "pathnames.h" -void logerr(const char *, ...) __printflike(1, 2); +void logerr(const char *, ...) __printflike(1, 2) __dead2; int main(int argc, char *argv[]) -- cgit v1.3