From: Otto Date: Wed, 27 Jan 2021 15:22:14 +0000 (+0100) Subject: Silence clang 12 warning: destructor called on non-final 'QPSLimiter' that has virtual X-Git-Tag: dnsdist-1.6.0-alpha1~7^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F10023%2Fhead;p=thirdparty%2Fpdns.git Silence clang 12 warning: destructor called on non-final 'QPSLimiter' that has virtual functions but non-virtual destructor --- diff --git a/pdns/dnsdist.hh b/pdns/dnsdist.hh index 7c79380b19..7b63403fb9 100644 --- a/pdns/dnsdist.hh +++ b/pdns/dnsdist.hh @@ -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)) {