mirror of
https://github.com/verilator/verilator.git
synced 2026-09-06 08:57:23 +02:00
Internals: Fix remaining cppcheck errors (#6319)
Fixed the non const-related issue and added suppressions for the const ones. With that `make cppcheck` should be clean.
This commit is contained in:
@@ -316,6 +316,7 @@ class TraceDeclVisitor final : public VNVisitor {
|
||||
|
||||
void removeRedundantPrefixPushPop() {
|
||||
for (const auto& pair : m_scopeInitFuncps) {
|
||||
// cppcheck-suppress constVariablePointer
|
||||
for (AstCFunc* const funcp : pair.second) {
|
||||
AstNode* prevp = nullptr;
|
||||
AstNode* currp = funcp->stmtsp();
|
||||
|
||||
Reference in New Issue
Block a user