Browse Source

[4294] Compilation fix for unused parameter

Tomek Mrugalski 8 years ago
parent
commit
643ced7b1a
2 changed files with 11 additions and 2 deletions
  1. 9 0
      src/lib/dhcpsrv/lease_mgr.cc
  2. 2 2
      src/lib/dhcpsrv/lease_mgr.h

+ 9 - 0
src/lib/dhcpsrv/lease_mgr.cc

@@ -123,6 +123,11 @@ LeaseMgr::startAddressStatsQuery4() {
     return(AddressStatsQuery4Ptr());
 }
 
+bool
+AddressStatsQuery4::getNextRow(AddressStatsRow4& /*row*/) {
+    return (false);
+}
+
 void
 LeaseMgr::recountAddressStats6() {
     using namespace stats;
@@ -230,6 +235,10 @@ LeaseMgr::startAddressStatsQuery6() {
     return(AddressStatsQuery6Ptr());
 }
 
+bool
+AddressStatsQuery6::getNextRow(AddressStatsRow6& /*row*/) {
+    return (false);
+}
 
 std::string
 LeaseMgr::getDBVersion() {

+ 2 - 2
src/lib/dhcpsrv/lease_mgr.h

@@ -204,7 +204,7 @@ public:
     ///
     /// @return True if a row was fetched, false if there are no
     /// more rows.
-    virtual bool getNextRow(AddressStatsRow4& row) { return(false); };
+    virtual bool getNextRow(AddressStatsRow4& row);
 };
 
 /// @brief Defines a pointer to an AddressStatsQuery4.
@@ -271,7 +271,7 @@ public:
     ///
     /// @return True if a row was fetched, false if there are no
     /// more rows.
-    virtual bool getNextRow(AddressStatsRow6& row) { return (false); };
+    virtual bool getNextRow(AddressStatsRow6& row);
 };
 
 /// @brief Defines a pointer to an AddressStatsQuery6.