From 8487d67f00866a81ae11ff06e659f82c6d9e0a1e Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Mon, 9 Nov 2009 20:38:23 -0500 Subject: [PATCH] Internals: Disable debug message when no warnings --- src/V3Width.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/V3Width.cpp b/src/V3Width.cpp index b4cb428d7..84c725466 100644 --- a/src/V3Width.cpp +++ b/src/V3Width.cpp @@ -315,9 +315,11 @@ private: <<(nodep->lsbp()->width()!=nodep->lsbp()->widthMin() ?" or "+cvtToStr(nodep->lsbp()->widthMin()):"") <<" bits."); - UINFO(1," Related node: "<varp()<varp()->dtypep()<fileline()->warnIsOff(V3ErrorCode::WIDTH)) { + UINFO(1," Related node: "<varp()<varp()->dtypep()<lsbp()->castConst() && nodep->msbConst() > frommsb) { // See also warning in V3Const @@ -370,9 +372,11 @@ private: <<(nodep->bitp()->width()!=nodep->bitp()->widthMin() ?" or "+cvtToStr(nodep->bitp()->widthMin()):"") <<" bits."); - UINFO(1," Related node: "<varp()<fileline()->warnIsOff(V3ErrorCode::WIDTH)) { + UINFO(1," Related node: "<varp()<bitp(),selwidth,selwidth,true); }