mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +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:
+1
-1
@@ -907,7 +907,7 @@ class EmitCTrace final : EmitCFunc {
|
||||
puts(");\n");
|
||||
}
|
||||
|
||||
void emitTraceValue(AstTraceInc* nodep, int arrayindex) {
|
||||
void emitTraceValue(const AstTraceInc* nodep, int arrayindex) {
|
||||
if (AstVarRef* const varrefp = VN_CAST(nodep->valuep(), VarRef)) {
|
||||
const AstVar* const varp = varrefp->varp();
|
||||
if (varp->isEvent()) puts("&");
|
||||
|
||||
Reference in New Issue
Block a user