Disable state mutability warning for functions with empty body

This commit is contained in:
Leonardo Alt
2018-12-12 14:43:44 +01:00
parent 53537864a2
commit 508aae8a67
32 changed files with 1 additions and 45 deletions
+1
View File
@@ -156,6 +156,7 @@ void ViewPureChecker::endVisit(FunctionDefinition const& _funDef)
m_bestMutabilityAndLocation.mutability < _funDef.stateMutability() &&
_funDef.stateMutability() != StateMutability::Payable &&
_funDef.isImplemented() &&
!_funDef.body().statements().empty() &&
!_funDef.isConstructor() &&
!_funDef.isFallback() &&
!_funDef.annotation().superFunction