mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Fix removing extra width warnings after another error
This commit is contained in:
+4
-3
@@ -55,6 +55,7 @@ public:
|
||||
// Boolean information we track per-line, but aren't errors
|
||||
I_CELLDEFINE, // Inside cell define from `celldefine/`endcelldefine
|
||||
I_COVERAGE, // Coverage is on/off from /*verilator coverage_on/off*/
|
||||
I_ERRORING, // Node created to handle earlier error; suppress new errors
|
||||
I_DEF_NETTYPE_WIRE, // `default_nettype is WIRE (false=NONE)
|
||||
I_LINT, // All lint messages
|
||||
I_STYLE, // All style messages
|
||||
@@ -220,8 +221,8 @@ public:
|
||||
// Leading spaces indicate it can't be disabled.
|
||||
" MIN", " INFO", " FATAL", " FATALMANY", " FATALSRC", " ERROR", " FIRST_NAMED",
|
||||
// Boolean
|
||||
" I_CELLDEFINE", " I_COVERAGE", " I_DEF_NETTYPE_WIRE", " I_LINT", " I_STYLE",
|
||||
" I_TIMING", " I_TRACING",
|
||||
" I_CELLDEFINE", " I_COVERAGE", " I_ERRORING", " I_DEF_NETTYPE_WIRE", " I_LINT",
|
||||
" I_STYLE", " I_TIMING", " I_TRACING",
|
||||
// Errors
|
||||
"CONTASSINIT", "CONSTWRITTEN", "LIFETIME", "NEEDTIMINGOPT", "NOTIMING", "PORTSHORT",
|
||||
"TASKNSVAR", "UNSUPPORTED",
|
||||
@@ -252,7 +253,7 @@ public:
|
||||
}
|
||||
// Warnings that default to off
|
||||
bool defaultsOff() const VL_MT_SAFE {
|
||||
return (m_e == IMPERFECTSCH || m_e == I_CELLDEFINE || styleError());
|
||||
return (m_e == IMPERFECTSCH || m_e == I_CELLDEFINE || m_e == I_ERRORING || styleError());
|
||||
}
|
||||
// Warnings that warn about nasty side effects
|
||||
bool dangerous() const VL_MT_SAFE { return (m_e == COMBDLY); }
|
||||
|
||||
Reference in New Issue
Block a user