mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-28 21:38:44 +08:00
Fix clang warnings on etl::unordered_map, etl::unordered_multimap, and etl::unordered_set (#88)
* Fix unused variable warning in etl::unordered_map * Fix unused parameter warnings in etl::unordered_map/multimap/set
This commit is contained in:
parent
77a5e07c73
commit
e31c2756bf
@ -781,8 +781,6 @@ namespace etl
|
||||
bucket_t* pbucket = pbuckets + index;
|
||||
bucket_t& bucket = *pbucket;
|
||||
|
||||
size_t s = pbuckets->size();
|
||||
|
||||
// The first one in the bucket?
|
||||
if (bucket.empty())
|
||||
{
|
||||
@ -843,7 +841,7 @@ namespace etl
|
||||
///\param position The position to insert at.
|
||||
///\param value The value to insert.
|
||||
//*********************************************************************
|
||||
iterator insert(const_iterator position, const value_type& key_value_pair)
|
||||
iterator insert(const_iterator, const value_type& key_value_pair)
|
||||
{
|
||||
return insert(key_value_pair).first;
|
||||
}
|
||||
|
||||
@ -726,7 +726,7 @@ namespace etl
|
||||
///\param position The position to insert at.
|
||||
///\param value The value to insert.
|
||||
//*********************************************************************
|
||||
iterator insert(const_iterator position, const value_type& key_value_pair)
|
||||
iterator insert(const_iterator, const value_type& key_value_pair)
|
||||
{
|
||||
return insert(key_value_pair);
|
||||
}
|
||||
|
||||
@ -725,7 +725,7 @@ namespace etl
|
||||
///\param position The position to insert at.
|
||||
///\param value The value to insert.
|
||||
//*********************************************************************
|
||||
iterator insert(const_iterator position, const value_type& key)
|
||||
iterator insert(const_iterator, const value_type& key)
|
||||
{
|
||||
return insert(key).first;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user