aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/AnalysisFramework.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-08-31 06:27:25 +0800
committerchriseth <chris@ethereum.org>2017-09-06 18:19:11 +0800
commit311be6b6599b363b89d34a584773bfa6c207b519 (patch)
treef6efb309ec5faac5af1aa29389c65eb34d830fc1 /test/libsolidity/AnalysisFramework.cpp
parent5922306193c85127d9166b734c818dae1f284f2b (diff)
downloaddexon-solidity-311be6b6599b363b89d34a584773bfa6c207b519.tar.gz
dexon-solidity-311be6b6599b363b89d34a584773bfa6c207b519.tar.zst
dexon-solidity-311be6b6599b363b89d34a584773bfa6c207b519.zip
Fix warning checking in test framework.
Diffstat (limited to 'test/libsolidity/AnalysisFramework.cpp')
-rw-r--r--test/libsolidity/AnalysisFramework.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/libsolidity/AnalysisFramework.cpp b/test/libsolidity/AnalysisFramework.cpp
index 173d46bc..71bb4ca7 100644
--- a/test/libsolidity/AnalysisFramework.cpp
+++ b/test/libsolidity/AnalysisFramework.cpp
@@ -59,7 +59,7 @@ AnalysisFramework::parseAnalyseAndReturnError(
if (currentError->comment()->find("This is a pre-release compiler version") == 0)
continue;
- if (_reportWarnings == (currentError->type() == Error::Type::Warning))
+ if (_reportWarnings || (currentError->type() != Error::Type::Warning))
{
if (firstError && !_allowMultipleErrors)
{