mirror of
https://github.com/verilator/verilator.git
synced 2026-10-07 18:42:58 +02:00
Internals: cppcheck fixes. No functional change. (#6687)
This commit is contained in:
+1
-1
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user