]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
FIx a few "warning: comparison of integers of different signs" on clang/OpenBSD 9417/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 26 Aug 2020 11:21:45 +0000 (13:21 +0200)
committerGitHub <noreply@github.com>
Wed, 26 Aug 2020 11:21:45 +0000 (13:21 +0200)
pdns/recursordist/test-syncres_cc10.cc

index 08641de4895568a90000bd5077f22a67e758c0ef..a596a8f994401a0c0127699fc8b726addd50b4ba 100644 (file)
@@ -55,7 +55,7 @@ BOOST_AUTO_TEST_CASE(test_outgoing_v4_only)
   BOOST_REQUIRE_EQUAL(v4Hit, true);
   BOOST_REQUIRE_EQUAL(v6Hit, false);
   BOOST_CHECK_EQUAL(rcode, RCode::NoError);
-  BOOST_CHECK_EQUAL(ret.size(), 1);
+  BOOST_CHECK_EQUAL(ret.size(), 1U);
 }
 
 BOOST_AUTO_TEST_CASE(test_outgoing_v4_only_no_A_in_delegation)
@@ -94,7 +94,7 @@ BOOST_AUTO_TEST_CASE(test_outgoing_v4_only_no_A_in_delegation)
   rcode = sr->beginResolve(target, QType(QType::A), QClass::IN, ret);
   BOOST_REQUIRE_EQUAL(queries, 14); // We keep trying all parent nameservers, this is wrong!
   BOOST_CHECK_EQUAL(rcode, RCode::ServFail);
-  BOOST_CHECK_EQUAL(ret.size(), 0);
+  BOOST_CHECK_EQUAL(ret.size(), 0U);
 }
 
 BOOST_AUTO_TEST_CASE(test_outgoing_v6_only_no_AAAA_in_delegation)
@@ -132,7 +132,7 @@ BOOST_AUTO_TEST_CASE(test_outgoing_v6_only_no_AAAA_in_delegation)
   rcode = sr->beginResolve(target, QType(QType::A), QClass::IN, ret);
   BOOST_REQUIRE_EQUAL(queries, 14); // The recursor tries all parent nameservers... this needs to be fixed
   BOOST_CHECK_EQUAL(rcode, RCode::ServFail);
-  BOOST_CHECK_EQUAL(ret.size(), 0);
+  BOOST_CHECK_EQUAL(ret.size(), 0U);
 }
 
 BOOST_AUTO_TEST_SUITE_END()