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". --- bin/stty/gfmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/stty/gfmt.c') diff --git a/bin/stty/gfmt.c b/bin/stty/gfmt.c index c35a6fc4604d..339da5970684 100644 --- a/bin/stty/gfmt.c +++ b/bin/stty/gfmt.c @@ -44,7 +44,7 @@ __FBSDID("$FreeBSD$"); #include "stty.h" #include "extern.h" -static void gerr(const char *s); +static void gerr(const char *s) __dead2; static void gerr(const char *s) -- cgit v1.2.3