]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Silence clang 12 warning: destructor called on non-final 'QPSLimiter' that has virtual 10023/head
authorOtto <otto.moerbeek@open-xchange.com>
Wed, 27 Jan 2021 15:22:14 +0000 (16:22 +0100)
committerOtto <otto.moerbeek@open-xchange.com>
Wed, 27 Jan 2021 15:22:14 +0000 (16:22 +0100)
functions but non-virtual destructor

pdns/dnsdist.hh

index 7c79380b19f5fcb071987d54d11f0a44ab2c0ef0..7b63403fb93c1453d6ff11a5ec8beb5b87906e13 100644 (file)
@@ -446,6 +446,10 @@ public:
     d_prev.start();
   }
 
+  virtual ~BasicQPSLimiter()
+  {
+  }
+
   bool check(unsigned int rate, unsigned int burst) const // this is not quite fair
   {
     if (checkOnly(rate, burst)) {