From 53d0684cb4dc7d7b5c9e92bf9e77383e14ecec8c Mon Sep 17 00:00:00 2001 From: LianaHus Date: Thu, 1 Oct 2015 17:59:01 +0200 Subject: -fixed the warning printing -style fixes --- test/libsolidity/SolidityNameAndTypeResolution.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/libsolidity') diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp index ad7b59ce..961c10b4 100644 --- a/test/libsolidity/SolidityNameAndTypeResolution.cpp +++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp @@ -45,7 +45,7 @@ namespace { pair, shared_ptr> -parseAnalyseAndReturnError(string const& _source, bool _warning = false) +parseAnalyseAndReturnError(string const& _source, bool _reportWarnings = false) { Parser parser; ASTPointer sourceUnit; @@ -76,12 +76,12 @@ parseAnalyseAndReturnError(string const& _source, bool _warning = false) { for (auto const& firstError: typeChecker.errors()) { - if (!dynamic_pointer_cast(firstError)) + if (_reportWarnings || !dynamic_pointer_cast(firstError)) { err = firstError; break; } - else if (_warning) + else if (_reportWarnings) { err = firstError; break; -- cgit v1.2.3