]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: fix gcc warning 11922/head
authorKees Monshouwer <mind04@monshouwer.org>
Thu, 8 Sep 2022 20:50:31 +0000 (22:50 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Fri, 9 Sep 2022 07:59:29 +0000 (09:59 +0200)
(cherry picked from commit 2b80ef0d5946edaf71c99ff9f3f42d970bf7e293)

pdns/auth-main.cc
pdns/auth-main.hh

index 427a997fbd9580b7ae1ca96086ccc8b52b9c0ed0..aacb2037204850573f5b681141fe88b281d92504 100644 (file)
@@ -130,8 +130,6 @@ vector<std::shared_ptr<UDPNameserver>> g_udpReceivers;
 NetmaskGroup g_proxyProtocolACL;
 size_t g_proxyProtocolMaximumSize;
 
-void mainthread();
-
 ArgvMap& arg()
 {
   return theArg;
index 83fb0c8f4af2d48b26f716bfad5e93427c691397..799383197388b4e4e7f7f4726b51364e4b5b2fc3 100644 (file)
@@ -48,7 +48,7 @@ extern double avg_latency;
 extern std::unique_ptr<TCPNameserver> TN;
 extern void declareArguments();
 extern void declareStats();
-extern void mainthread();
+void mainthread();
 extern int isGuarded(char**);
 void carbonDumpThread();
 extern bool g_anyToTcp;