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<