X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=cds%2Fintrusive%2Flazy_list_rcu.h;h=81b5512e596c9155fd0cf17ab49a7cc552fa7748;hb=f4d56635f899073e5dd2b83c208aabf793031861;hp=0d89f94085dc3c18c2a089f2a25c30c5094a76f3;hpb=5164ba5bd61a581d54cea6a6bfab51407757b1b3;p=libcds.git diff --git a/cds/intrusive/lazy_list_rcu.h b/cds/intrusive/lazy_list_rcu.h index 0d89f940..81b5512e 100644 --- a/cds/intrusive/lazy_list_rcu.h +++ b/cds/intrusive/lazy_list_rcu.h @@ -535,10 +535,10 @@ namespace cds { namespace intrusive { template bool erase_with( Q const& key, Less pred ) { + CDS_UNUSED( pred ); return erase_at( &m_Head, key, cds::opt::details::make_comparator_from_less()); } - /// Deletes the item from the list /** \anchor cds_intrusive_LazyList_rcu_find_erase_func The function searches an item with key equal to \p key in the list, @@ -574,6 +574,7 @@ namespace cds { namespace intrusive { template bool erase_with( Q const& key, Less pred, Func func ) { + CDS_UNUSED( pred ); return erase_at( &m_Head, key, cds::opt::details::make_comparator_from_less(), func ); } @@ -637,6 +638,7 @@ namespace cds { namespace intrusive { template exempt_ptr extract_with( Q const& key, Less pred ) { + CDS_UNUSED( pred ); return exempt_ptr( extract_at( &m_Head, key, cds::opt::details::make_comparator_from_less() )); } @@ -680,12 +682,14 @@ namespace cds { namespace intrusive { template bool find_with( Q& key, Less pred, Func f ) const { + CDS_UNUSED( pred ); return find_at( const_cast( &m_Head ), key, cds::opt::details::make_comparator_from_less(), f ); } //@cond template bool find_with( Q const& key, Less pred, Func f ) const { + CDS_UNUSED( pred ); return find_at( const_cast(&m_Head), key, cds::opt::details::make_comparator_from_less(), f ); } //@endcond @@ -711,6 +715,7 @@ namespace cds { namespace intrusive { template bool find_with( Q const& key, Less pred ) const { + CDS_UNUSED( pred ); return find_at( const_cast( &m_Head ), key, cds::opt::details::make_comparator_from_less() ); } @@ -759,6 +764,7 @@ namespace cds { namespace intrusive { template value_type * get_with( Q const& key, Less pred ) const { + CDS_UNUSED( pred ); return get_at( const_cast( &m_Head ), key, cds::opt::details::make_comparator_from_less()); }