mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Static Analyzer: Fix non-deterministic order of unused variable warnings.
This commit is contained in:
@@ -77,7 +77,9 @@ private:
|
||||
bool m_nonPayablePublic = false;
|
||||
|
||||
/// Number of uses of each (named) local variable in a function, counter is initialized with zero.
|
||||
std::map<VariableDeclaration const*, int> m_localVarUseCount;
|
||||
/// Pairs of AST ids and pointers are used as keys to ensure a deterministic order
|
||||
/// when traversing.
|
||||
std::map<std::pair<size_t, VariableDeclaration const*>, int> m_localVarUseCount;
|
||||
|
||||
FunctionDefinition const* m_currentFunction = nullptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user