diff options
author | Chad Loder <cloder@cvs.openbsd.org> | 2005-12-17 21:08:28 +0000 |
---|---|---|
committer | Chad Loder <cloder@cvs.openbsd.org> | 2005-12-17 21:08:28 +0000 |
commit | 832a24ed5ab2dd786f06b3a0d48e761d8b471832 (patch) | |
tree | b1f1b056d00d93ac27333e6241a853f7e2b2412a /usr.bin/xlint/lint1/tree.c | |
parent | a7fd65d5d46c64c757fd60fb55ef5e65322d3150 (diff) |
Handle __dead functions using lint comments.
Diffstat (limited to 'usr.bin/xlint/lint1/tree.c')
-rw-r--r-- | usr.bin/xlint/lint1/tree.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/xlint/lint1/tree.c b/usr.bin/xlint/lint1/tree.c index e4d391615a9..e78ef4e3653 100644 --- a/usr.bin/xlint/lint1/tree.c +++ b/usr.bin/xlint/lint1/tree.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tree.c,v 1.29 2005/12/16 03:01:35 cloder Exp $ */ +/* $OpenBSD: tree.c,v 1.30 2005/12/17 21:08:27 cloder Exp $ */ /* $NetBSD: tree.c,v 1.12 1995/10/02 17:37:57 jpo Exp $ */ /* @@ -33,7 +33,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: tree.c,v 1.29 2005/12/16 03:01:35 cloder Exp $"; +static char rcsid[] = "$OpenBSD: tree.c,v 1.30 2005/12/17 21:08:27 cloder Exp $"; #endif #include <stdlib.h> @@ -3131,6 +3131,9 @@ funccall(tnode_t *func, tnode_t *args) fcop = ICALL; } + if (func->tn_sym->s_noreturn) + notreach(0); + /* * after cconv() func will always be a pointer to a function * if it is a valid function designator. |