mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +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:
@@ -693,7 +693,7 @@ class EmitCModel final : public EmitCFunc {
|
||||
// VISITORS
|
||||
|
||||
public:
|
||||
explicit EmitCModel(AstNetlist* netlistp) { main(netlistp->topModulep()); }
|
||||
explicit EmitCModel(AstNodeModule* topModulep) { main(topModulep); }
|
||||
};
|
||||
|
||||
//######################################################################
|
||||
@@ -701,5 +701,5 @@ public:
|
||||
|
||||
void V3EmitC::emitcModel() {
|
||||
UINFO(2, __FUNCTION__ << ":");
|
||||
{ EmitCModel{v3Global.rootp()}; }
|
||||
{ EmitCModel{v3Global.rootp()->topModulep()}; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user