Fix output of loops on waiving (#2355)

When an unopt loop is waived, we also don't want the loop's example
path being plot.

Signed-off-by: Stefan Wallentowitz <[email protected]>
This commit is contained in:
Stefan Wallentowitz
2020-05-26 08:45:57 +02:00
committed by GitHub
parent 7f32d4dc45
commit 68a2ed6776
6 changed files with 36 additions and 6 deletions
+2 -2
View File
@@ -360,8 +360,8 @@ void FileLine::v3errorEnd(std::ostringstream& sstr, const string& locationStr) {
lstr << std::setw(ascii().length()) << " "
<< ": " << locationStr;
}
if (warnIsOff(V3Error::errorCode())
|| V3Config::waive(this, V3Error::errorCode(), sstr.str())) {
m_waive = V3Config::waive(this, V3Error::errorCode(), sstr.str());
if (warnIsOff(V3Error::errorCode()) || m_waive) {
V3Error::suppressThisWarning();
} else if (!V3Error::errorContexted()) {
nsstr << warnContextPrimary();