Fixed cmake script
authorkhizmax <khizmax@gmail.com>
Mon, 14 Nov 2016 13:19:03 +0000 (16:19 +0300)
committerkhizmax <khizmax@gmail.com>
Mon, 14 Nov 2016 13:19:03 +0000 (16:19 +0300)
Fixed gcc warnings

test/unit/intrusive-set/CMakeLists.txt
test/unit/map/split_iterable_dhp.cpp
test/unit/map/split_iterable_hp.cpp

index 898bed0..90e02ec 100644 (file)
@@ -74,7 +74,7 @@ add_test(NAME ${UNIT_ISET_MICHAEL_LAZY} COMMAND ${UNIT_ISET_MICHAEL_LAZY} WORKIN
 
 # intrusive::MichaelHashSet<IterableList>
 set(UNIT_ISET_MICHAEL_ITERABLE unit-iset-michael-iterable)
-set(UNIT_ISET_MICHAEL_LAZY_SOURCES
+set(UNIT_ISET_MICHAEL_ITERABLE_SOURCES
     ../main.cpp
     intrusive_michael_iterable_dhp.cpp
     intrusive_michael_iterable_hp.cpp
index 339dc51..9fc952e 100644 (file)
@@ -161,8 +161,8 @@ namespace {
 
         map_type m( kSize, 2 );
         test( m );
-        EXPECT_NE( m.statistics().m_nInsertSuccess, 0 );
-        EXPECT_NE( m.list_statistics().m_nInsertSuccess, 0 );
+        EXPECT_NE( m.statistics().m_nInsertSuccess, 0u );
+        EXPECT_NE( m.list_statistics().m_nInsertSuccess, 0u );
     }
 
     TEST_F( SplitListIterableMap_DHP, back_off )
index f07980e..ead29a7 100644 (file)
@@ -162,8 +162,8 @@ namespace {
 
         map_type m( kSize, 2 );
         test( m );
-        EXPECT_NE( m.statistics().m_nInsertSuccess, 0 );
-        EXPECT_NE( m.list_statistics().m_nInsertSuccess, 0 );
+        EXPECT_NE( m.statistics().m_nInsertSuccess, 0u );
+        EXPECT_NE( m.list_statistics().m_nInsertSuccess, 0u );
     }
 
     TEST_F( SplitListIterableMap_HP, back_off )