Internals: cppcheck fixes. No functional change. (#6687)

This commit is contained in:
Wilson Snyder
2025-11-12 18:54:22 -05:00
committed by GitHub
parent 67094f6a88
commit 5c0ad5bd1f
38 changed files with 122 additions and 111 deletions
+1 -1
View File
@@ -273,7 +273,7 @@ std::pair<string, FileLine*> EmitCBaseVisitorConst::scSection(const AstNodeModul
FileLine* fl = nullptr;
int last_line = -999;
for (AstNode* nodep = modp->stmtsp(); nodep; nodep = nodep->nextp()) {
AstSystemCSection* const ssp = VN_CAST(nodep, SystemCSection);
const AstSystemCSection* const ssp = VN_CAST(nodep, SystemCSection);
if (!ssp) continue;
if (ssp->sectionType() != type) continue;
if (text.empty()) {