From 48e88e4e7437e8af1ff0035853064ef70b5de788 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 19 Jan 2010 10:29:13 -0500 Subject: [PATCH] Fix unused var compiler warning --- src/V3EmitC.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/V3EmitC.cpp b/src/V3EmitC.cpp index f70608083..ee0d6b658 100644 --- a/src/V3EmitC.cpp +++ b/src/V3EmitC.cpp @@ -1055,7 +1055,7 @@ void EmitCStmts::displayEmit(AstNode* nodep, bool isScan) { // NOP } else { // Format - bool isStmt; + bool isStmt = false; if (AstFScanF* dispp = nodep->castFScanF()) { isStmt = false; puts("VL_FSCANF_IX("); @@ -1086,6 +1086,7 @@ void EmitCStmts::displayEmit(AstNode* nodep, bool isScan) { dispp->lhsp()->iterate(*this); putbs(","); } else if (AstSFormatF* dispp = nodep->castSFormatF()) { + isStmt = false; if (dispp) {} puts("VL_SFORMATF_NX("); } else {