diff options
author | Francis Dupont <fdupont@isc.org> | 2020-12-07 19:34:16 +0100 |
---|---|---|
committer | Francis Dupont <fdupont@isc.org> | 2020-12-09 15:14:06 +0100 |
commit | 3306afa726b147366c9cb7e74001991f36fd8b61 (patch) | |
tree | 487685804f43626443e163b9f5cd49898c21aee7 /src/lib/dhcpsrv/network.h | |
parent | [#1456] Added a ChangeLog entry for #1456 (diff) | |
download | kea-3306afa726b147366c9cb7e74001991f36fd8b61.tar.xz kea-3306afa726b147366c9cb7e74001991f36fd8b61.zip |
[#1456] Ignored unused
Diffstat (limited to 'src/lib/dhcpsrv/network.h')
-rw-r--r-- | src/lib/dhcpsrv/network.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 <functional> #include <string> +/// @brief Template to ignore unused arguments. +namespace { +template <typename... Args> +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)) { |