Fix unused var compiler warning

This commit is contained in:
Wilson Snyder 2010-01-19 10:29:13 -05:00
parent d182ecb2d3
commit 48e88e4e74
1 changed files with 2 additions and 1 deletions

View File

@ -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 {