diff options
author | Chad Loder <cloder@cvs.openbsd.org> | 2005-12-16 03:01:36 +0000 |
---|---|---|
committer | Chad Loder <cloder@cvs.openbsd.org> | 2005-12-16 03:01:36 +0000 |
commit | 8bd3ba17514484d2fad65e72dfe33a2999ba1ace (patch) | |
tree | a225aba8882594c02e27419beea8ca9c2d930592 /usr.bin | |
parent | c66471b77b8408648ddc972f0934855f1e2a14f3 (diff) |
Make div by zero a non-fatal message
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/xlint/lint1/tree.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/xlint/lint1/tree.c b/usr.bin/xlint/lint1/tree.c index fa1db5166da..e4d391615a9 100644 --- a/usr.bin/xlint/lint1/tree.c +++ b/usr.bin/xlint/lint1/tree.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tree.c,v 1.28 2005/12/16 02:56:53 cloder Exp $ */ +/* $OpenBSD: tree.c,v 1.29 2005/12/16 03:01:35 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.28 2005/12/16 02:56:53 cloder Exp $"; +static char rcsid[] = "$OpenBSD: tree.c,v 1.29 2005/12/16 03:01:35 cloder Exp $"; #endif #include <stdlib.h> @@ -2583,13 +2583,13 @@ chkdbz(op_t op, tnode_t *rn) if (isftyp(rn->tn_type->t_tspec)) { if (rn->tn_val->v_ldbl == 0.0) { /* division by 0 */ - error(code); + warning(code); return 1; } } else { if (rn->tn_val->v_quad == 0) { /* division by 0 */ - error(code); + warning(code); return 1; } } |