Fix some cppcheck warnings. No functional change intended.

This commit is contained in:
Wilson Snyder
2025-03-27 19:46:59 -04:00
parent 5e69faff46
commit 98b89d0f2c
9 changed files with 17 additions and 20 deletions
+3 -3
View File
@@ -325,9 +325,9 @@ void V3FuncOpt::funcOptAll(AstNetlist* nodep) {
V3ThreadScope threadScope;
for (AstNodeModule *modp = nodep->modulesp(), *nextModp; modp; modp = nextModp) {
nextModp = VN_AS(modp->nextp(), NodeModule);
for (AstNode *nodep = modp->stmtsp(), *nextNodep; nodep; nodep = nextNodep) {
nextNodep = nodep->nextp();
if (AstCFunc* const cfuncp = VN_CAST(nodep, CFunc)) {
for (AstNode *stmtp = modp->stmtsp(), *nextStmtp; stmtp; stmtp = nextStmtp) {
nextStmtp = stmtp->nextp();
if (AstCFunc* const cfuncp = VN_CAST(stmtp, CFunc)) {
threadScope.enqueue([cfuncp]() { FuncOptVisitor::apply(cfuncp); });
}
}