mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Fix clang unused warning.
This commit is contained in:
+4
-4
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user