]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] Fixed merge errors and some trivial warnings
authorFrancis Dupont <fdupont@isc.org>
Wed, 5 Jul 2017 14:29:20 +0000 (16:29 +0200)
committerFrancis Dupont <fdupont@isc.org>
Wed, 5 Jul 2017 14:29:20 +0000 (16:29 +0200)
src/bin/dhcp4/tests/get_config_unittest.cc
src/lib/config/tests/client_connection_unittests.cc
src/lib/dhcpsrv/tests/timer_mgr_unittest.cc
src/lib/dhcpsrv/timer_mgr.cc

index 9ec7502bd3eed2fb1191eeba935937092631234c..c66cdbf2ca52fc908b9dd847131963fcb241e717 100644 (file)
@@ -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));
 
 };
index f70afa326ca7df09cf74a1b62ccf8c5c38515d3d..1502bb84817c23667b61da7c80f60c6df58f9588 100644 (file)
@@ -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);
     });
index e0d95dd2fc6b8312419a883eda4170ee4458a29f..39d89f427816e6ac305cce37190e658523768058 100644 (file)
@@ -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();
index aaf7c729cf6959b5529925452513ea4fb28ba1ce..f2fe5269bb1583f792595377ec4e11e90e66ba65 100644 (file)
@@ -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);
 }