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:
Prasenjit Sengupta 2018-08-15 13:00:18 -07:00 committed by John Wellbelove
parent 77a5e07c73
commit e31c2756bf
3 changed files with 3 additions and 5 deletions

View File

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

View File

@ -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);
}

View File

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