summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Loder <cloder@cvs.openbsd.org>2006-03-20 05:05:31 +0000
committerChad Loder <cloder@cvs.openbsd.org>2006-03-20 05:05:31 +0000
commit7a6bb336cbb26a5fd00bf8e7fdefede6589479d9 (patch)
treeffa23267cd41b3018a2bce30a5b974f864387c65
parentb01cfaea03f07066f93f5684e0f72ada65d3f446 (diff)
Lint should not complain about expressions of the form: ((x == y) == z)
because this is perfectly legal in C. deraadt@ was seeing lint false positives with the S_ISREG macro from stat.h. So set m_eqwarn to 0 for the EQ operator. See xlint regress case #16.
-rw-r--r--usr.bin/xlint/lint1/tree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/xlint/lint1/tree.c b/usr.bin/xlint/lint1/tree.c
index e78ef4e3653..ef43e663d77 100644
--- a/usr.bin/xlint/lint1/tree.c
+++ b/usr.bin/xlint/lint1/tree.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tree.c,v 1.30 2005/12/17 21:08:27 cloder Exp $ */
+/* $OpenBSD: tree.c,v 1.31 2006/03/20 05:05:30 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.30 2005/12/17 21:08:27 cloder Exp $";
+static char rcsid[] = "$OpenBSD: tree.c,v 1.31 2006/03/20 05:05:30 cloder Exp $";
#endif
#include <stdlib.h>
@@ -139,7 +139,7 @@ initmtab(void)
">" } },
{ GE, { 1,1,0,1,0,1,1,0,1,0,1,1,0,1,1,0,1,
">=" } },
- { EQ, { 1,1,0,1,0,1,1,0,1,0,0,0,0,1,1,0,1,
+ { EQ, { 1,1,0,1,0,1,1,0,1,0,0,0,0,1,1,0,0,
"==" } },
{ NE, { 1,1,0,1,0,1,1,0,1,0,0,0,0,1,1,0,1,
"!=" } },