Parcourir la source

Fix warnings during compilation

Don't warn about static cast of function pointer print.
Michal 'vorner' Vaner il y a 11 ans
Parent
commit
465c333031
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      src/bin/auth/tests/datasrc_clients_builder_unittest.cc

+ 2 - 1
src/bin/auth/tests/datasrc_clients_builder_unittest.cc

@@ -125,7 +125,8 @@ TEST_F(DataSrcClientsBuilderTest, commandFinished) {
     EXPECT_EQ(2, queue_mutex.unlock_count);
     // There's one callback in the queue
     ASSERT_EQ(1, callback_queue.size());
-    EXPECT_EQ(emptyCallsback, callback_queue.front());
+    // Not using EXPECT_EQ, as that produces warning in printing out the result
+    EXPECT_TRUE(emptyCallsback == callback_queue.front());
     // And we are woken up.
     char c;
     int result = recv(read_end, &c, 1, MSG_DONTWAIT);