From: Peter van Dijk Date: Mon, 12 Sep 2022 07:36:56 +0000 (+0200) Subject: auth LUA: fix "braces around scalar initializer" warning X-Git-Tag: auth-4.5.5~3^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F12034%2Fhead;p=thirdparty%2Fpdns.git auth LUA: fix "braces around scalar initializer" warning inspired by #6188 (cherry picked from commit d27a2d307e4a0dcf0671046910994a2bf3ba945e) --- diff --git a/pdns/lua-record.cc b/pdns/lua-record.cc index f53a75f228..4924a64061 100644 --- a/pdns/lua-record.cc +++ b/pdns/lua-record.cc @@ -75,8 +75,9 @@ private: ReadWriteLock d_lock; public: - IsUpOracle(): d_checkerThreadStarted(ATOMIC_FLAG_INIT) + IsUpOracle() { + d_checkerThreadStarted.clear(); } ~IsUpOracle() {