mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Internals: Cleanup cppcheck warnings (#6317)
`make cppcheck-4` is now clean.
This commit is contained in:
@@ -85,6 +85,7 @@ class DeadVisitor final : public VNVisitor {
|
||||
VL_DO_DANGLING(pushDeletep(nodep->unlinkFrBack()), nodep);
|
||||
}
|
||||
|
||||
// cppcheck-suppress constParameterPointer
|
||||
void checkAll(AstNode* nodep) {
|
||||
if (AstNode* const subnodep = nodep->dtypep()) {
|
||||
if (nodep != subnodep // Not NodeDTypes reference themselves
|
||||
@@ -473,7 +474,9 @@ class DeadVisitor final : public VNVisitor {
|
||||
}
|
||||
}
|
||||
|
||||
// cppcheck-suppress constParameterPointer
|
||||
void preserveTopIfaces(AstNetlist* rootp) {
|
||||
// cppcheck-suppress constVariablePointer
|
||||
for (AstNodeModule* modp = rootp->modulesp(); modp && modp->level() <= 2;
|
||||
modp = VN_AS(modp->nextp(), NodeModule)) {
|
||||
for (AstNode* subnodep = modp->stmtsp(); subnodep; subnodep = subnodep->nextp()) {
|
||||
|
||||
Reference in New Issue
Block a user