From df728581ce1bb05a338519efc6b834adfed68d90 Mon Sep 17 00:00:00 2001 From: Lu Guanqun Date: Tue, 19 Jan 2016 02:18:01 +0000 Subject: add another test case for continue not in loop --- libsolidity/analysis/SyntaxChecker.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libsolidity/analysis') diff --git a/libsolidity/analysis/SyntaxChecker.cpp b/libsolidity/analysis/SyntaxChecker.cpp index f1cdaf0f..e94ce9fe 100644 --- a/libsolidity/analysis/SyntaxChecker.cpp +++ b/libsolidity/analysis/SyntaxChecker.cpp @@ -40,24 +40,24 @@ void SyntaxChecker::syntaxError(SourceLocation const& _location, std::string con m_errors.push_back(err); } -bool SyntaxChecker::visit(WhileStatement const& _whileStatement) +bool SyntaxChecker::visit(WhileStatement const&) { m_inLoopDepth++; return true; } -void SyntaxChecker::endVisit(WhileStatement const& _whileStatement) +void SyntaxChecker::endVisit(WhileStatement const&) { m_inLoopDepth--; } -bool SyntaxChecker::visit(ForStatement const& _forStatement) +bool SyntaxChecker::visit(ForStatement const&) { m_inLoopDepth++; return true; } -void SyntaxChecker::endVisit(ForStatement const& _forStatement) +void SyntaxChecker::endVisit(ForStatement const&) { m_inLoopDepth--; } -- cgit v1.2.3