From: Tomek Mrugalski Date: Sat, 9 Nov 2019 17:26:04 +0000 (+0100) Subject: [#1004] werror compilation fixes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2F1004-werror-tests-fix;p=thirdparty%2Fkea.git [#1004] werror compilation fixes --- diff --git a/src/lib/dhcpsrv/tests/host_mgr_unittest.cc b/src/lib/dhcpsrv/tests/host_mgr_unittest.cc index 4cd15159dd..c14de8a73d 100644 --- a/src/lib/dhcpsrv/tests/host_mgr_unittest.cc +++ b/src/lib/dhcpsrv/tests/host_mgr_unittest.cc @@ -986,6 +986,13 @@ TEST_F(HostMgrTest, getAllbyHostnameSubnet4) { testGetAllbyHostnameSubnet4(*getCfgHosts(), *getCfgHosts()); } +// This test verifies that HostMgr returns all reservations for the specified +// hostname and DHCPv6 subnet. The reservations are defined in the server's +// configuration. +TEST_F(HostMgrTest, getAllbyHostnameSubnet6) { + testGetAllbyHostnameSubnet6(*getCfgHosts(), *getCfgHosts()); +} + // This test verifies that HostMgr returns all reservations for the specified // hostname and DHCPv6 subnet. The reservations are defined in the server's // configuration. diff --git a/src/lib/dhcpsrv/tests/lease_mgr_unittest.cc b/src/lib/dhcpsrv/tests/lease_mgr_unittest.cc index 3bb7184368..5dda893417 100644 --- a/src/lib/dhcpsrv/tests/lease_mgr_unittest.cc +++ b/src/lib/dhcpsrv/tests/lease_mgr_unittest.cc @@ -144,7 +144,7 @@ public: /// @param hostname hostname in lower case. /// /// @return Lease collection (may be empty if no IPv4 lease found). - virtual Lease4Collection getLeases4(const std::string& hostname) const { + virtual Lease4Collection getLeases4(const std::string&) const { return (Lease4Collection()); } @@ -240,7 +240,7 @@ public: /// @param hostname hostname in lower case. /// /// @return Lease collection (may be empty if no IPv6 lease found). - virtual Lease6Collection getLeases6(const std::string& hostname) const { + virtual Lease6Collection getLeases6(const std::string&) const { return (Lease6Collection()); }