Fix clang unused warning.

This commit is contained in:
Wilson Snyder
2020-04-06 08:53:19 -04:00
parent b6c21ad21a
commit f13bd1aec4
2 changed files with 7 additions and 6 deletions
+4 -4
View File
@@ -162,10 +162,10 @@ void V3CCtors::cctorsAll() {
}
}
if (v3Global.opt.coverage()) {
V3CCtorsVisitor configure_coverage
(modp, "_configure_coverage",
EmitCBaseVisitor::symClassVar()+ ", bool first", "vlSymsp, first",
"if (0 && vlSymsp && first) {} // Prevent unused\n");
V3CCtorsVisitor configure_coverage(
modp, "_configure_coverage",
EmitCBaseVisitor::symClassVar() + ", bool first", "vlSymsp, first",
"if (false && vlSymsp && first) {} // Prevent unused\n");
for (AstNode* np = modp->stmtsp(); np; np = np->nextp()) {
if (AstCoverDecl* coverp = VN_CAST(np, CoverDecl)) {
AstNode* backp = coverp->backp();