From b43299c8da86669060c094c09c913a9120b0edfe Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Thu, 30 Dec 2010 08:41:23 -0500 Subject: [PATCH] Fix suppression of messages under debug --- src/V3Const.cpp | 2 +- src/V3Error.cpp | 20 ++++++++++---------- src/V3Error.h | 10 +++++----- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/V3Const.cpp b/src/V3Const.cpp index c98b4ab19..22866f0d0 100644 --- a/src/V3Const.cpp +++ b/src/V3Const.cpp @@ -859,7 +859,7 @@ private: AstNode* errorp = simvis.whyNotNodep(); if (!errorp) errorp = nodep; nodep->v3error("Expecting expression to be constant, but can't determine constant for " <prettyTypeName()<fileline()<<"... Location of non-constant " + <fileline()<<"... Location of non-constant " <prettyTypeName()<<": "<=V3ErrorCode::EC_FIRST_WARN) { V3Stats::addStatSum(string("Warnings, Suppressed ")+s_errorCode.ascii(), 1); - s_errorCode=V3ErrorCode::EC_SUPPRESS; + s_errorSuppressed = true; } } @@ -372,15 +373,14 @@ void V3Error::v3errorEnd (ostringstream& sstr) { #ifdef __COVERITY__ if (s_errorCode==V3ErrorCode::EC_FATAL) __coverity_panic__(x); #endif - if (s_errorCode!=V3ErrorCode::EC_SUPPRESS + if (!s_errorSuppressed // On debug, show only non default-off warning to prevent pages of warnings || (debug() && !s_errorCode.defaultsOff())) { cerr<