From: Christian Hofstaedtler Date: Sun, 22 Nov 2015 22:07:10 +0000 (+0100) Subject: Mark functions overriding funcs as such X-Git-Tag: dnsdist-1.0.0-alpha1~208^2^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cff3e04d7cbd3b5ee5623881e77b12e9111f5717;p=pdns Mark functions overriding funcs as such Reduces number of warnings on clang. --- diff --git a/pdns/distributor.hh b/pdns/distributor.hh index 707537499..a870aa256 100644 --- a/pdns/distributor.hh +++ b/pdns/distributor.hh @@ -65,11 +65,11 @@ public: SingleThreadDistributor(); typedef std::function callback_t; int question(Question *, callback_t callback) override; //!< Submit a question to the Distributor - int getQueueSize() { + int getQueueSize() override { return 0; } - bool isOverloaded() + bool isOverloaded() override { return false; } diff --git a/pdns/dnsparser.cc b/pdns/dnsparser.cc index f09177570..a884b347a 100644 --- a/pdns/dnsparser.cc +++ b/pdns/dnsparser.cc @@ -58,8 +58,8 @@ public: d_record.insert(d_record.end(), out.begin(), out.end()); } - - string getZoneRepresentation() const + + string getZoneRepresentation() const override { ostringstream str; str<<"\\# "<<(unsigned int)d_record.size()<<" "; @@ -70,13 +70,13 @@ public: } return str.str(); } - - void toPacket(DNSPacketWriter& pw) + + void toPacket(DNSPacketWriter& pw) override { pw.xfrBlob(string(d_record.begin(),d_record.end())); } - uint16_t getType() const override + uint16_t getType() const override { return d_dr.d_type; }