mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 18:13:50 +02:00
Using command line -Wno-{WARNING} now overrides file-local lint_on.
This commit is contained in:
@@ -253,6 +253,7 @@ void FileLine::warnStyleOff(bool flag) {
|
||||
|
||||
bool FileLine::warnIsOff(V3ErrorCode code) const {
|
||||
if (!m_warnOn.test(code)) return true;
|
||||
if (!defaultFileLine().m_warnOn.test(code)) return true; // Global overrides local
|
||||
// UNOPTFLAT implies UNOPT
|
||||
if (code==V3ErrorCode::UNOPT && !m_warnOn.test(V3ErrorCode::UNOPTFLAT)) return true;
|
||||
if ((code.lintError() || code.styleError()) && !m_warnOn.test(V3ErrorCode::I_LINT)) return true;
|
||||
|
||||
Reference in New Issue
Block a user