Module Name: src Committed By: christos Date: Sat Mar 2 21:25:12 UTC 2013
Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: obey constcond to !constcond To generate a diff of this commit: cvs rdiff -u -r1.71 -r1.72 src/usr.bin/xlint/lint1/tree.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/xlint/lint1/tree.c diff -u src/usr.bin/xlint/lint1/tree.c:1.71 src/usr.bin/xlint/lint1/tree.c:1.72 --- src/usr.bin/xlint/lint1/tree.c:1.71 Fri Apr 20 14:35:28 2012 +++ src/usr.bin/xlint/lint1/tree.c Sat Mar 2 16:25:12 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: tree.c,v 1.71 2012/04/20 18:35:28 christos Exp $ */ +/* $NetBSD: tree.c,v 1.72 2013/03/02 21:25:12 christos Exp $ */ /* * Copyright (c) 1994, 1995 Jochen Pohl @@ -37,7 +37,7 @@ #include <sys/cdefs.h> #if defined(__RCSID) && !defined(lint) -__RCSID("$NetBSD: tree.c,v 1.71 2012/04/20 18:35:28 christos Exp $"); +__RCSID("$NetBSD: tree.c,v 1.72 2013/03/02 21:25:12 christos Exp $"); #endif #include <stdlib.h> @@ -2822,7 +2822,7 @@ foldtst(tnode_t *tn) switch (tn->tn_op) { case NOT: - if (hflag) + if (hflag && !ccflg) /* constant argument to NOT */ warning(239); v->v_quad = !l;