From 164aa96953dc684f7b95da45d2c6fdca0b774b24 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sun, 29 Jan 2023 17:34:48 -0500 Subject: [PATCH] Fix GCC warning (fixes recent #3510) --- src/V3EmitCFunc.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/V3EmitCFunc.h b/src/V3EmitCFunc.h index cad8e132f..c6d4bad54 100644 --- a/src/V3EmitCFunc.h +++ b/src/V3EmitCFunc.h @@ -1273,8 +1273,9 @@ public: } void visit(AstConsPackMember* nodep) override { auto* const vdtypep = VN_AS(nodep->dtypep(), MemberDType); - putbs(vdtypep->name()); - puts(": "); + putbs("."); + puts(vdtypep->name()); + puts(" = "); iterate(nodep->rhsp()); } void visit(AstConsQueue* nodep) override {