Fix to not emit already waived warnings in waiver output (#4574) (#4818)

This commit is contained in:
Jonathan Schröter
2024-01-24 07:45:38 -05:00
committed by GitHub
parent 3d006afacc
commit 31262e81f9
9 changed files with 69 additions and 17 deletions
+1 -1
View File
@@ -411,7 +411,7 @@ void FileLine::v3errorEnd(std::ostringstream& sstr, const string& extra)
} else if (!V3Error::s().errorContexted()) {
nsstr << warnContextPrimary();
}
if (!m_waive) V3Waiver::addEntry(V3Error::s().errorCode(), filename(), sstr.str());
if (!warnIsOff(V3Error::s().errorCode()) && !m_waive) V3Waiver::addEntry(V3Error::s().errorCode(), filename(), sstr.str());
V3Error::v3errorEnd(nsstr, lstr.str());
}