From: Peter van Dijk Date: Tue, 6 Jul 2021 13:23:13 +0000 (+0200) Subject: rec: move ifdef-dependent vars to inside the ifdef X-Git-Tag: dnsdist-1.7.0-alpha1~89^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bc82867a1781b54334a524cfade52f984f7ca223;p=thirdparty%2Fpdns.git rec: move ifdef-dependent vars to inside the ifdef --- 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; }