mirror of
https://github.com/verilator/verilator.git
synced 2025-05-04 14:36:55 +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
|
||||
string newvarname = (string)"__Vtogcov__"+nodep->shortName();
|
||||
AstVar* chgVarp = new AstVar (nodep->fileline(), AstVarType::MODULETEMP, newvarname, nodep);
|
||||
chgVarp->fileline()->modifyWarnOff(V3ErrorCode::UNUSED, true);
|
||||
m_modp->addStmtp(chgVarp);
|
||||
|
||||
// Create bucket for each dimension * bit.
|
||||
|
Loading…
Reference in New Issue
Block a user