From 3306afa726b147366c9cb7e74001991f36fd8b61 Mon Sep 17 00:00:00 2001 From: Francis Dupont Date: Mon, 7 Dec 2020 19:34:16 +0100 Subject: [#1456] Ignored unused --- src/lib/dhcpsrv/network.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/lib/dhcpsrv/network.h b/src/lib/dhcpsrv/network.h index 08706043ba..d033bdba13 100644 --- a/src/lib/dhcpsrv/network.h +++ b/src/lib/dhcpsrv/network.h @@ -25,6 +25,12 @@ #include #include +/// @brief Template to ignore unused arguments. +namespace { +template +inline void unused(Args const& ...) {} +} // end of anonymous namespace + namespace isc { namespace dhcp { @@ -777,6 +783,7 @@ protected: const std::string& global_name, const std::string& min_name = "", const std::string& max_name = "") const { + unused(min_name, max_name); if (!global_name.empty() && fetch_globals_fn_) { data::ConstElementPtr globals = fetch_globals_fn_(); if (globals && (globals->getType() == data::Element::map)) { -- cgit v1.2.3