]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: move ifdef-dependent vars to inside the ifdef
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 6 Jul 2021 13:23:13 +0000 (15:23 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 6 Jul 2021 13:23:13 +0000 (15:23 +0200)
pdns/lwres.cc

index 3af1421dc3da6953dd4cdcd0dc75db84931379a2..6a7bd7344591ff4aa27774745155a510368f5532 100644 (file)
@@ -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;
   }