7
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:
Jon Evans 2024-07-17 18:17:17 -04:00
parent 3437a2f497
commit c66f862a39

View File

@ -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