diff options
author | Francis Dupont <fdupont@isc.org> | 2017-07-05 16:29:20 +0200 |
---|---|---|
committer | Francis Dupont <fdupont@isc.org> | 2017-07-05 16:29:20 +0200 |
commit | de3fcb076ee7b8cab63c839e380454e6ddc480b4 (patch) | |
tree | 28dc4df9518991bffbfc526d8413a5facfc94f59 | |
parent | [master] regen lexers with last flex (diff) | |
download | kea-de3fcb076ee7b8cab63c839e380454e6ddc480b4.tar.xz kea-de3fcb076ee7b8cab63c839e380454e6ddc480b4.zip |
[master] Fixed merge errors and some trivial warnings
-rw-r--r-- | src/bin/dhcp4/tests/get_config_unittest.cc | 9 | ||||
-rw-r--r-- | src/lib/config/tests/client_connection_unittests.cc | 4 | ||||
-rw-r--r-- | src/lib/dhcpsrv/tests/timer_mgr_unittest.cc | 2 | ||||
-rw-r--r-- | src/lib/dhcpsrv/timer_mgr.cc | 2 |
4 files changed, 8 insertions, 9 deletions
diff --git a/src/bin/dhcp4/tests/get_config_unittest.cc b/src/bin/dhcp4/tests/get_config_unittest.cc index 9ec7502bd3..c66cdbf2ca 100644 --- a/src/bin/dhcp4/tests/get_config_unittest.cc +++ b/src/bin/dhcp4/tests/get_config_unittest.cc @@ -3905,7 +3905,8 @@ const char* UNPARSED_CONFIGS[] = { " \"hooks-libraries\": [ ],\n" " \"host-reservation-identifiers\": [ \"hw-address\", \"duid\", \"circuit-id\", \"client-id\" ],\n" " \"interfaces-config\": {\n" -" \"interfaces\": [ \"*\" ]\n" +" \"interfaces\": [ \"*\" ],\n" +" \"re-detect\": false\n" " },\n" " \"lease-database\": {\n" " \"type\": \"memfile\"\n" @@ -3987,7 +3988,8 @@ const char* UNPARSED_CONFIGS[] = { " \"hooks-libraries\": [ ],\n" " \"host-reservation-identifiers\": [ \"hw-address\", \"duid\", \"circuit-id\", \"client-id\" ],\n" " \"interfaces-config\": {\n" -" \"interfaces\": [ \"*\" ]\n" +" \"interfaces\": [ \"*\" ],\n" +" \"re-detect\": false\n" " },\n" " \"lease-database\": {\n" " \"type\": \"memfile\"\n" @@ -6157,7 +6159,6 @@ public: TEST_P(Dhcp4GetConfigTest, run) { // configurations have not been extracted yet if (max_config_counter == 0) { - std::cout << "#### max_config_counter=0, aborting" << std::endl; return; } @@ -6221,6 +6222,6 @@ TEST_P(Dhcp4GetConfigTest, run) { /// Define the parametrized test loop INSTANTIATE_TEST_CASE_P(Dhcp4GetConfigTest, Dhcp4GetConfigTest, - ::testing::Range(0UL, max_config_counter)); + ::testing::Range(static_cast<size_t>(0), max_config_counter)); }; diff --git a/src/lib/config/tests/client_connection_unittests.cc b/src/lib/config/tests/client_connection_unittests.cc index f70afa326c..1502bb8481 100644 --- a/src/lib/config/tests/client_connection_unittests.cc +++ b/src/lib/config/tests/client_connection_unittests.cc @@ -147,7 +147,7 @@ TEST_F(ClientConnectionTest, timeout) { conn.start(ClientConnection::SocketPath(unixSocketFilePath()), ClientConnection::ControlCommand(command), [this, &handler_invoked](const boost::system::error_code& ec, - const ConstJSONFeedPtr& feed) { + const ConstJSONFeedPtr& /*feed*/) { // Indicate that the callback has been invoked to break the loop // below. handler_invoked = true; @@ -173,7 +173,7 @@ TEST_F(ClientConnectionTest, connectionError) { conn.start(ClientConnection::SocketPath(unixSocketFilePath()), ClientConnection::ControlCommand(command), [this, &handler_invoked](const boost::system::error_code& ec, - const ConstJSONFeedPtr& feed) { + const ConstJSONFeedPtr& /*feed*/) { handler_invoked = true; ASSERT_TRUE(ec); }); diff --git a/src/lib/dhcpsrv/tests/timer_mgr_unittest.cc b/src/lib/dhcpsrv/tests/timer_mgr_unittest.cc index e0d95dd2fc..39d89f4278 100644 --- a/src/lib/dhcpsrv/tests/timer_mgr_unittest.cc +++ b/src/lib/dhcpsrv/tests/timer_mgr_unittest.cc @@ -130,7 +130,7 @@ TimerMgrTest::registerTimer(const std::string& timer_name, const long timer_inte } void -TimerMgrTest::doWait(const long timeout, const bool call_receive) { +TimerMgrTest::doWait(const long timeout, const bool /*call_receive*/) { IntervalTimer timer(*io_service_); timer.setup([this]() { io_service_->stop(); diff --git a/src/lib/dhcpsrv/timer_mgr.cc b/src/lib/dhcpsrv/timer_mgr.cc index aaf7c729cf..f2fe5269bb 100644 --- a/src/lib/dhcpsrv/timer_mgr.cc +++ b/src/lib/dhcpsrv/timer_mgr.cc @@ -209,8 +209,6 @@ TimerMgrImpl::unregisterTimer(const std::string& timer_name) { // Cancel any pending asynchronous operation and stop the timer. cancel(timer_name); - const TimerInfoPtr& timer_info = timer_info_it->second; - // Remove the timer. registered_timers_.erase(timer_info_it); } |