From: Otto Date: Mon, 18 Oct 2021 07:27:29 +0000 (+0200) Subject: Fix two unsigned warnings as seen on OpenBSD/clang X-Git-Tag: dnsdist-1.7.0-alpha2~1^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F10857%2Fhead;p=thirdparty%2Fpdns.git Fix two unsigned warnings as seen on OpenBSD/clang --- diff --git a/pdns/dnsdistdist/test-dnsdistrules_cc.cc b/pdns/dnsdistdist/test-dnsdistrules_cc.cc index aed5ee4b53..b44374fefa 100644 --- a/pdns/dnsdistdist/test-dnsdistrules_cc.cc +++ b/pdns/dnsdistdist/test-dnsdistrules_cc.cc @@ -132,7 +132,7 @@ BOOST_AUTO_TEST_CASE(test_poolOutstandingRule) { sp.addServer(ds1); sp.addServer(ds2); - BOOST_CHECK_EQUAL(sp.poolLoad(), 400+30); + BOOST_CHECK_EQUAL(sp.poolLoad(), 400U + 30U); auto localPool = g_pools.getCopy(); addServerToPool(localPool, "test", ds1); diff --git a/pdns/test-ednscookie_cc.cc b/pdns/test-ednscookie_cc.cc index 0359b4792e..556429fcfb 100644 --- a/pdns/test-ednscookie_cc.cc +++ b/pdns/test-ednscookie_cc.cc @@ -76,7 +76,7 @@ BOOST_AUTO_TEST_CASE(test_ctor) eco = EDNSCookiesOpt("\x12\x34\x56\x78\x90\xab\xcd\xef"); BOOST_CHECK(eco.isWellFormed()); - BOOST_CHECK_EQUAL(8, eco.makeOptString().length()); + BOOST_CHECK_EQUAL(8U, eco.makeOptString().length()); } #ifdef HAVE_CRYPTO_SHORTHASH