mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-21 00:21:25 +00:00
Quiet a warning
This commit is contained in:
parent
3437a2f497
commit
c66f862a39
@ -336,11 +336,12 @@ struct hash<BASE_SET>
|
||||
{
|
||||
size_t operator()( const BASE_SET& bs ) const
|
||||
{
|
||||
size_t hash = 0;
|
||||
for( const auto& bit : bs )
|
||||
hash = hash * 31 + std::hash<int>()( bit );
|
||||
size_t hashVal = 0;
|
||||
|
||||
return hash;
|
||||
for( const auto& bit : bs )
|
||||
hashVal = hashVal * 31 + std::hash<int>()( bit );
|
||||
|
||||
return hashVal;
|
||||
}
|
||||
};
|
||||
} // namespace std
|
||||
|
Loading…
Reference in New Issue
Block a user