Using command line -Wno-{WARNING} now overrides file-local lint_on.

This commit is contained in:
Wilson Snyder
2014-05-15 20:54:45 -04:00
parent 5f262a8f11
commit 9f0d7e50a5
5 changed files with 48 additions and 1 deletions
+1
View File
@@ -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;