From 3900614434805b685fadeccf7d3272b456ed8229 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Wed, 19 Jun 2019 14:09:14 +0200 Subject: [PATCH] dnsdist: squelch unused function warning Only compile the loadTLSCertificateAndKeys fucntion when DoT and/or DoH are enabled. --- pdns/dnsdist-lua.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index aab963cf6..f27fd87f7 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -109,6 +109,7 @@ static void parseLocalBindVars(boost::optional vars, bool& reusePor } } +#if defined(HAVE_DNS_OVER_TLS) || defined(HAVE_DNS_OVER_HTTPS) static bool loadTLSCertificateAndKeys(const std::string& context, std::vector>& pairs, boost::variant>> certFiles, boost::variant>> keyFiles) { if (certFiles.type() == typeid(std::string) && keyFiles.type() == typeid(std::string)) { @@ -141,6 +142,7 @@ static bool loadTLSCertificateAndKeys(const std::string& context, std::vector