From: Kees Monshouwer Date: Tue, 2 Feb 2016 18:25:28 +0000 (+0100) Subject: silence g++ 6.0 warnings and error X-Git-Tag: auth-3.4.8^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F3325%2Fhead;p=thirdparty%2Fpdns.git silence g++ 6.0 warnings and error --- diff --git a/pdns/rfc2136handler.cc b/pdns/rfc2136handler.cc index 8cdad016c2..6776f8374d 100644 --- a/pdns/rfc2136handler.cc +++ b/pdns/rfc2136handler.cc @@ -791,7 +791,7 @@ int PacketHandler::processUpdate(DNSPacket *p) { return RCode::FormErr; if (rr->d_class == QClass::IN) { - rrSetKey_t key = make_pair(stripDot(rr->d_label), rr->d_type); + rrSetKey_t key = make_pair(stripDot(rr->d_label), QType(rr->d_type)); rrVector_t *vec = &preReqRRsets[key]; vec->push_back(DNSResourceRecord(*rr)); } diff --git a/pdns/version.cc b/pdns/version.cc index 627e4812df..7280493609 100644 --- a/pdns/version.cc +++ b/pdns/version.cc @@ -29,9 +29,9 @@ static ProductType productType; string compilerVersion() { #if defined(__clang__) - return string("clang "__clang_version__); + return string("clang " __clang_version__); #elif defined(__GNUC__) - return string("gcc "__VERSION__); + return string("gcc " __VERSION__); #else // add other compilers here return string("Unknown compiler"); #endif @@ -61,10 +61,10 @@ string productTypeApiType() { void showProductVersion() { - theL()<