mirror of
https://github.com/verilator/verilator.git
synced 2025-05-04 22:46:57 +00:00
Fix false unused warning on line coverage objects
This commit is contained in:
parent
4e2ec09f9a
commit
c693e52f6c
@ -168,6 +168,7 @@ private:
|
|||||||
// Add signal to hold the old value
|
// Add signal to hold the old value
|
||||||
string newvarname = (string)"__Vtogcov__"+nodep->shortName();
|
string newvarname = (string)"__Vtogcov__"+nodep->shortName();
|
||||||
AstVar* chgVarp = new AstVar (nodep->fileline(), AstVarType::MODULETEMP, newvarname, nodep);
|
AstVar* chgVarp = new AstVar (nodep->fileline(), AstVarType::MODULETEMP, newvarname, nodep);
|
||||||
|
chgVarp->fileline()->modifyWarnOff(V3ErrorCode::UNUSED, true);
|
||||||
m_modp->addStmtp(chgVarp);
|
m_modp->addStmtp(chgVarp);
|
||||||
|
|
||||||
// Create bucket for each dimension * bit.
|
// Create bucket for each dimension * bit.
|
||||||
|
Loading…
Reference in New Issue
Block a user