]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Kill a few warnings 15260/head
authorOtto Moerbeek <otto@drijf.net>
Wed, 5 Mar 2025 15:27:58 +0000 (16:27 +0100)
committerOtto Moerbeek <otto@drijf.net>
Wed, 5 Mar 2025 15:27:58 +0000 (16:27 +0100)
pdns/dnsdistdist/dnsdist-lua-bindings-kvs.cc
pdns/dnsdistdist/dnsdist-rules-factory.hh
pdns/recursordist/rec-main.cc
pdns/recursordist/rec-rust-lib/cxxsupport.cc

index ba1e732344d73fadf5c133fbccee7fa9e6b27e68..702acfb1ad3bc09b6f64da716ce0aaab70af012a 100644 (file)
@@ -23,7 +23,7 @@
 #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) {
index 101d36820d7a3334a2c9dcd94aba0d277fe423eb..ff2cdcbb6e9997c69839094b7e2a4744ff2cccc1 100644 (file)
@@ -546,11 +546,11 @@ private:
 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;
   }
index 8a607f5fb388ffedc05e2ebcb60059071f0fc4f1..536eb00ca9b74192b1b032d2ad9082453dfd3884 100644 (file)
@@ -1388,7 +1388,7 @@ void* pleaseSupplantAllowNotifyFor(std::shared_ptr<notifyset_t> allowNotifyFor)
   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);
index 772d21edbe694d729655f6f8b4be10c6453af764..f61add41a5f14e0f4f290fa892723439b1182e93 100644 (file)
@@ -1454,7 +1454,7 @@ Wrapper<M>::Wrapper(const M& arg) :
 }
 
 template <typename M>
-Wrapper<M>::~Wrapper<M>() = default;
+Wrapper<M>::~Wrapper() = default;
 
 template <typename M>
 [[nodiscard]] const M& Wrapper<M>::get() const