diff options
author | chriseth <chris@ethereum.org> | 2018-07-10 21:24:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-10 21:24:01 +0800 |
commit | 7650905567a0e6740b09e1d540d037152c0cac85 (patch) | |
tree | 558cb37564789644115242dd6e0e07d032d436da /libsolidity/analysis | |
parent | d9c3b10b1c5ad5d9dffbaceb48cd99e7293a6c56 (diff) | |
parent | 65631cffc2127fc603371c67f85d2c07da07c3ca (diff) | |
download | dexon-solidity-7650905567a0e6740b09e1d540d037152c0cac85.tar dexon-solidity-7650905567a0e6740b09e1d540d037152c0cac85.tar.gz dexon-solidity-7650905567a0e6740b09e1d540d037152c0cac85.tar.bz2 dexon-solidity-7650905567a0e6740b09e1d540d037152c0cac85.tar.lz dexon-solidity-7650905567a0e6740b09e1d540d037152c0cac85.tar.xz dexon-solidity-7650905567a0e6740b09e1d540d037152c0cac85.tar.zst dexon-solidity-7650905567a0e6740b09e1d540d037152c0cac85.zip |
Merge pull request #4415 from ethereum/uninitializedStoragePointer
[BREAKING] Turn uninitialized storage variables into error.
Diffstat (limited to 'libsolidity/analysis')
-rw-r--r-- | libsolidity/analysis/TypeChecker.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp index 20e423e6..a11b1879 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())) |