diff --git a/Changes b/Changes index 304f6200c..7ad1c2e30 100644 --- a/Changes +++ b/Changes @@ -39,6 +39,7 @@ Verilator 5.009 devel * Fix characters from DEFENV literals for conda (#4035) (#4044). [Tim Snyder] * Fix interface generate begin (#4065). [Srinivasan Venkataramanan] * Fix false ENUMVALUE on expressions and arrays. +* Fix unnecessary verilated_std.sv waivers in --waiver-output. Verilator 5.008 2023-03-04 diff --git a/src/V3Waiver.cpp b/src/V3Waiver.cpp index 1650fdefa..909a762bc 100644 --- a/src/V3Waiver.cpp +++ b/src/V3Waiver.cpp @@ -19,6 +19,7 @@ #include "V3Waiver.h" #include "V3File.h" +#include "V3Options.h" #include #include @@ -26,6 +27,7 @@ void V3Waiver::addEntry(V3ErrorCode errorCode, const std::string& filename, const std::string& str) VL_MT_SAFE_EXCLUDES(s_mutex) { const VerilatedLockGuard lock{s_mutex}; + if (filename == V3Options::getStdPackagePath()) return; std::stringstream entry; const size_t pos = str.find('\n'); entry << "lint_off -rule " << errorCode.ascii() << " -file \"*" << filename << "\" -match \""