]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
silence warning on JSON getproduct calls.
authorbert hubert <bert.hubert@netherlabs.nl>
Wed, 5 Feb 2014 10:21:50 +0000 (11:21 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Wed, 5 Feb 2014 10:21:50 +0000 (11:21 +0100)
pdns/version.cc

index a066d17777ff4164657556dc6daab91c804bb905..886418251f5e0aadf95868a46c8e2c9bc68e8b57 100644 (file)
@@ -45,6 +45,7 @@ string productName() {
   case ProductRecursor:
     return "PowerDNS Recursor";
   };
+  return "Unknown";
 }
 
 // REST API product type
@@ -55,6 +56,7 @@ string productTypeApiType() {
   case ProductRecursor:
     return "recursor";
   };
+  return "unknown";
 }
 
 void showProductVersion()