]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
silence g++ 6.0 warnings and error 3325/head
authorKees Monshouwer <mind04@monshouwer.org>
Tue, 2 Feb 2016 18:25:28 +0000 (19:25 +0100)
committermind04 <mind04@monshouwer.org>
Tue, 2 Feb 2016 18:26:34 +0000 (19:26 +0100)
pdns/rfc2136handler.cc
pdns/version.cc
pdns/webserver.cc

index 8cdad016c2e647363604685ab2cd45cba725df46..6776f8374da8620d952921678208729a3dd4ff33 100644 (file)
@@ -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));
       }
index 627e4812df2593717977792bfd6aebf3da553f27..728049360949863c7d7b2c72c51856c7ef10b630 100644 (file)
@@ -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()<<Logger::Warning<<productName()<<" "<<PDNS_VERSION<<" ("DIST_HOST") "
+  theL()<<Logger::Warning<<productName()<<" "<<PDNS_VERSION<< " (" DIST_HOST") "
     "(C) 2001-2015 PowerDNS.COM BV" << endl;
   theL()<<Logger::Warning<<"Using "<<(sizeof(unsigned long)*8)<<"-bits mode. "
-    "Built on "BUILD_DATE" by "BUILD_HOST", "<<compilerVersion()<<"."<<endl;
+    "Built on " BUILD_DATE" by " BUILD_HOST", "<<compilerVersion()<<"."<<endl;
   theL()<<Logger::Warning<<"PowerDNS comes with ABSOLUTELY NO WARRANTY. "
     "This is free software, and you are welcome to redistribute it "
     "according to the terms of the GPL version 2." << endl;
@@ -104,7 +104,7 @@ void showBuildConfiguration()
 string fullVersionString()
 {
   ostringstream s;
-  s<<productName()<<" "PDNS_VERSION" ("DIST_HOST" built "BUILD_DATE" "BUILD_HOST")";
+  s<<productName()<<" " PDNS_VERSION" (" DIST_HOST" built " BUILD_DATE" " BUILD_HOST")";
   return s.str();
 }
 
index 920ea3acb91e758996e63fbc3e8cdb9fd9d4d5cd..f2d95ddae02acff63af18ba703b9a459434b0a08 100644 (file)
@@ -270,7 +270,7 @@ HttpResponse WebServer::handleRequest(HttpRequest req)
   }
 
   // always set these headers
-  resp.headers["Server"] = "PowerDNS/"VERSION;
+  resp.headers["Server"] = "PowerDNS/" VERSION;
   resp.headers["Connection"] = "close";
 
   if (req.method == "HEAD") {