#include "dnsdist-kvs.hh"
#include "dnsdist-lua.hh"
-void setupLuaBindingsKVS(LuaContext& luaCtx, bool client)
+void setupLuaBindingsKVS([[maybe_unused]] LuaContext& luaCtx, [[maybe_unused]] bool client)
{
#ifdef HAVE_LMDB
luaCtx.writeFunction("newLMDBKVStore", [client](const std::string& fname, const std::string& dbName, boost::optional<bool> noLock) {
class RE2Rule : public DNSRule
{
public:
- RE2Rule(const std::string& re2)
+ RE2Rule(const std::string& /* re2 */)
{
throw std::runtime_error("RE2 support is disabled");
}
- bool matches(const DNSQuestion* dq) const override
+ bool matches(const DNSQuestion* /* dq */) const override
{
return false;
}
return nullptr;
}
-void* pleaseSupplantProxyProtocolSettings(std::shared_ptr<NetmaskGroup> acl, std::shared_ptr<std::set<ComboAddress>> except)
+static void* pleaseSupplantProxyProtocolSettings(std::shared_ptr<NetmaskGroup> acl, std::shared_ptr<std::set<ComboAddress>> except)
{
t_proxyProtocolACL = std::move(acl);
t_proxyProtocolExceptions = std::move(except);
}
template <typename M>
-Wrapper<M>::~Wrapper<M>() = default;
+Wrapper<M>::~Wrapper() = default;
template <typename M>
[[nodiscard]] const M& Wrapper<M>::get() const