diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2016-10-15 09:13:08 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2016-10-20 20:25:28 +0800 |
commit | 0dd75ac100d59d81321d8815638c8f252b2fe467 (patch) | |
tree | ac7a9840cad498d411c0a513bc71504277de68dd /libsolidity/analysis | |
parent | 9d30450167d5b262d0e7379f44f01637715fb878 (diff) | |
download | dexon-solidity-0dd75ac100d59d81321d8815638c8f252b2fe467.tar.gz dexon-solidity-0dd75ac100d59d81321d8815638c8f252b2fe467.tar.zst dexon-solidity-0dd75ac100d59d81321d8815638c8f252b2fe467.zip |
Use warning function in TypeChecker
Diffstat (limited to 'libsolidity/analysis')
-rw-r--r-- | libsolidity/analysis/TypeChecker.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp index 332ce2c3..b5955c8f 100644 --- a/libsolidity/analysis/TypeChecker.cpp +++ b/libsolidity/analysis/TypeChecker.cpp @@ -718,11 +718,10 @@ bool TypeChecker::visit(VariableDeclarationStatement const& _statement) { if (ref->dataStoredIn(DataLocation::Storage)) { - auto err = make_shared<Error>(Error::Type::Warning); - *err << - errinfo_sourceLocation(varDecl.location()) << - errinfo_comment("Uninitialized storage pointer. Did you mean '<type> memory " + varDecl.name() + "'?"); - m_errors.push_back(err); + warning( + varDecl.location(), + "Uninitialized storage pointer. Did you mean '<type> memory " + varDecl.name() + "'?" + ); } } varDecl.accept(*this); |