Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/xlint/lint1 obey constcond to !constcond



details:   https://anonhg.NetBSD.org/src/rev/0c7027875bac
branches:  trunk
changeset: 785192:0c7027875bac
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Mar 02 21:25:12 2013 +0000

description:
obey constcond to !constcond

diffstat:

 usr.bin/xlint/lint1/tree.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d6b40791d0c6 -r 0c7027875bac usr.bin/xlint/lint1/tree.c
--- a/usr.bin/xlint/lint1/tree.c        Sat Mar 02 21:24:28 2013 +0000
+++ b/usr.bin/xlint/lint1/tree.c        Sat Mar 02 21:25:12 2013 +0000
@@ -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 @@
 
        switch (tn->tn_op) {
        case NOT:
-               if (hflag)
+               if (hflag && !ccflg)
                        /* constant argument to NOT */
                        warning(239);
                v->v_quad = !l;



Home | Main Index | Thread Index | Old Index