From: Kees Monshouwer Date: Mon, 12 Sep 2022 07:22:21 +0000 (+0200) Subject: auth: fix gcc warning, no prevous declaration for ‘void carbonDumpThread()’ X-Git-Tag: rec-4.8.0-alpha1~17^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F11932%2Fhead;p=thirdparty%2Fpdns.git auth: fix gcc warning, no prevous declaration for ‘void carbonDumpThread()’ --- diff --git a/pdns/auth-main.cc b/pdns/auth-main.cc index c07f45deeb..f974da3002 100644 --- a/pdns/auth-main.cc +++ b/pdns/auth-main.cc @@ -130,9 +130,6 @@ static vector> s_udpReceivers; NetmaskGroup g_proxyProtocolACL; size_t g_proxyProtocolMaximumSize; -// Implemented in auth-carbon.cc. Avoids having an auth-carbon.hh declaring exactly one function. -void carbonDumpThread(); - ArgvMap& arg() { return theArg; diff --git a/pdns/auth-main.hh b/pdns/auth-main.hh index bfc53cf9ef..764a643a72 100644 --- a/pdns/auth-main.hh +++ b/pdns/auth-main.hh @@ -42,6 +42,7 @@ extern AuthPacketCache PC; //!< This is the main PacketCache, shared across all extern AuthQueryCache QC; extern std::unique_ptr DP; extern CommunicatorClass Communicator; +void carbonDumpThread(); // Implemented in auth-carbon.cc. Avoids having an auth-carbon.hh declaring exactly one function. extern bool g_anyToTcp; extern bool g_8bitDNS; extern NetmaskGroup g_proxyProtocolACL;