From bc82867a1781b54334a524cfade52f984f7ca223 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Tue, 6 Jul 2021 15:23:13 +0200 Subject: [PATCH] rec: move ifdef-dependent vars to inside the ifdef --- pdns/lwres.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/lwres.cc b/pdns/lwres.cc index 3af1421dc3..6a7bd73445 100644 --- a/pdns/lwres.cc +++ b/pdns/lwres.cc @@ -296,9 +296,9 @@ LWResult::Result asyncresolve(const ComboAddress& ip, const DNSName& domain, int // We only store the localip if needed for fstrm logging ComboAddress localip; +#ifdef HAVE_FSTRM bool fstrmQEnabled = false; bool fstrmREnabled = false; -#ifdef HAVE_FSTRM if (isEnabledForQueries(fstrmLoggers)) { fstrmQEnabled = true; } -- 2.47.2