From 3920cc243ae361111b9e3d576c95d73b26291b90 Mon Sep 17 00:00:00 2001 From: khizmax Date: Sun, 5 Mar 2017 21:37:25 +0300 Subject: [PATCH] Fixed compiler warnings --- test/unit/intrusive-set/test_intrusive_feldman_hashset_rcu.h | 4 ++-- test/unit/misc/split_bitstring.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit/intrusive-set/test_intrusive_feldman_hashset_rcu.h b/test/unit/intrusive-set/test_intrusive_feldman_hashset_rcu.h index 0cb5dd2f..1cce7d04 100644 --- a/test/unit/intrusive-set/test_intrusive_feldman_hashset_rcu.h +++ b/test/unit/intrusive-set/test_intrusive_feldman_hashset_rcu.h @@ -255,7 +255,7 @@ TYPED_TEST_P( IntrusiveFeldmanHashSet, byte_cut ) typedef ci::FeldmanHashSet< typename TestFixture::rcu_type, typename TestFixture::int_item, traits > set_type; set_type s( 8, 8 ); - test( s ); + this->test( s ); } TYPED_TEST_P( IntrusiveFeldmanHashSet, byte_cut_explicit_hash_size ) @@ -275,7 +275,7 @@ TYPED_TEST_P( IntrusiveFeldmanHashSet, byte_cut_explicit_hash_size ) typedef ci::FeldmanHashSet< typename TestFixture::rcu_type, typename TestFixture::int_item2, traits > set_type; set_type s( 8, 8 ); - test( s ); + this->test( s ); } // GCC 5: All test names should be written on single line, otherwise a runtime error will be encountered like as diff --git a/test/unit/misc/split_bitstring.cpp b/test/unit/misc/split_bitstring.cpp index 60531cb4..360fd3d2 100644 --- a/test/unit/misc/split_bitstring.cpp +++ b/test/unit/misc/split_bitstring.cpp @@ -698,7 +698,7 @@ namespace { // split by hex digit for ( unsigned count = 4; count < sizeof( Int ) * 8; count += 4 ) { - EXPECT_EQ( splitter.cut( 4 ), count / 4 - 1 ); + EXPECT_EQ( splitter.cut( 4 ), static_cast( count / 4 - 1 )); } // random cut -- 2.34.1