summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorcperciva <cperciva@FreeBSD.org>2008-08-04 01:25:48 +0000
committercperciva <cperciva@FreeBSD.org>2008-08-04 01:25:48 +0000
commit45f0d08992efea87dbc15433e392afdeabec2270 (patch)
tree229041eea5ad591ae2c140ea64950ea8a82735f1 /lib
parenta5c1d60642f3e26278563bd545199cd3f6d6e962 (diff)
downloadFreeBSD-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 'lib')
-rw-r--r--lib/libarchive/archive_private.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libarchive/archive_private.h b/lib/libarchive/archive_private.h
index a75489d..87f149f 100644
--- a/lib/libarchive/archive_private.h
+++ b/lib/libarchive/archive_private.h
@@ -92,7 +92,7 @@ struct archive {
void __archive_check_magic(struct archive *, unsigned int magic,
unsigned int state, const char *func);
-void __archive_errx(int retvalue, const char *msg);
+void __archive_errx(int retvalue, const char *msg) __dead2;
#define err_combine(a,b) ((a) < (b) ? (a) : (b))
OpenPOWER on IntegriCloud