From: khizmax Date: Sat, 11 Mar 2017 20:16:57 +0000 (+0300) Subject: Fixed GCC warnings X-Git-Tag: v2.3.0~110 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=libcds.git;a=commitdiff_plain;h=dc0896b7789164920cdb3f95c2d04799eeaa72b0 Fixed GCC warnings --- diff --git a/test/stress/set/iter_erase/set_iter_erase.h b/test/stress/set/iter_erase/set_iter_erase.h index 5ab5acfe..9537c686 100644 --- a/test/stress/set/iter_erase/set_iter_erase.h +++ b/test/stress/set/iter_erase/set_iter_erase.h @@ -362,12 +362,11 @@ namespace set { { Set& rSet = m_Set; - size_t const nInsThreadCount = s_nInsThreadCount; Set_Iter_Del3& fixture = pool().template fixture(); do { - auto itEnd = rSet.get_end(); - for ( auto it = rSet.get_begin(); it != itEnd; ++it ) { + auto itEnd = rSet.template get_end(); + for ( auto it = rSet.template get_begin(); it != itEnd; ++it ) { if ( it->key.nKey & 3 ) { if ( rSet.erase_at( it )) ++m_nDeleteSuccess; diff --git a/test/stress/set/set_type_feldman_hashset.h b/test/stress/set/set_type_feldman_hashset.h index c88b4c0b..2822911a 100644 --- a/test/stress/set/set_type_feldman_hashset.h +++ b/test/stress/set/set_type_feldman_hashset.h @@ -47,7 +47,8 @@ namespace set { { typedef cc::FeldmanHashSet< GC, T, Traits > base_class; - template + + template struct get_extracted_ptr { typedef typename base_class::guarded_ptr extracted_ptr; @@ -418,7 +419,7 @@ namespace set { CDSSTRESS_FeldmanHashSet_case( fixture, test_case, FeldmanHashSet_rcu_gpb_fixed_stat, key_type, value_type ) \ CDSSTRESS_FeldmanHashSet_case( fixture, test_case, FeldmanHashSet_rcu_gpt_fixed_stat, key_type, value_type ) \ - //CDSSTRESS_FeldmanHashSet_fixed_SHRCU( fixture, test_case, key_type, value_type ) \ + //CDSSTRESS_FeldmanHashSet_fixed_SHRCU( fixture, test_case, key_type, value_type ) #define CDSSTRESS_FeldmanHashSet_fixed_HP( fixture, test_case, key_type, value_type ) \ CDSSTRESS_FeldmanHashSet_case( fixture, test_case, FeldmanHashSet_hp_fixed, key_type, value_type ) \