mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix invalid "explicit storage keyword" warning for reference members of structs.
This commit is contained in:
@@ -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. "
|
||||
|
||||
Reference in New Issue
Block a user