aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-07-03 21:10:59 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-07-10 17:37:45 +0800
commitfe1d5da2a6dc180850be04e01e9316ad9d2f58c2 (patch)
tree81a13d0521b386a9475c9b1eb3bee2cf6750f32f /libsolidity
parentf6edb7fb8f3f86f527d20bbe7b0e55d2c560ba90 (diff)
downloaddexon-solidity-fe1d5da2a6dc180850be04e01e9316ad9d2f58c2.tar.gz
dexon-solidity-fe1d5da2a6dc180850be04e01e9316ad9d2f58c2.tar.zst
dexon-solidity-fe1d5da2a6dc180850be04e01e9316ad9d2f58c2.zip
Turn uninitialized storage variables into an error.
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/analysis/TypeChecker.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp
index ed7f05f7..1669a4da 100644
--- a/libsolidity/analysis/TypeChecker.cpp
+++ b/libsolidity/analysis/TypeChecker.cpp
@@ -1073,10 +1073,7 @@ bool TypeChecker::visit(VariableDeclarationStatement const& _statement)
if (varDecl.referenceLocation() == VariableDeclaration::Location::Default)
errorText += " Did you mean '<type> memory " + varDecl.name() + "'?";
solAssert(m_scope, "");
- if (v050)
- m_errorReporter.declarationError(varDecl.location(), errorText);
- else
- m_errorReporter.warning(varDecl.location(), errorText);
+ m_errorReporter.declarationError(varDecl.location(), errorText);
}
}
else if (dynamic_cast<MappingType const*>(type(varDecl).get()))