Fix invalid "explicit storage keyword" warning for reference members of structs.

This commit is contained in:
chriseth
2017-07-10 18:30:41 +02:00
parent aafcc3606c
commit 883666d2c0
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -295,7 +295,7 @@ void ReferencesResolver::endVisit(VariableDeclaration const& _variable)
else
{
typeLoc = DataLocation::Storage;
if (!_variable.isStateVariable())
if (_variable.isLocalVariable())
m_errorReporter.warning(
_variable.location(),
"Variable is declared as a storage pointer. "