]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
JSON11: Fix unnamed arguments
authorFred Morcos <fred.morcos@open-xchange.com>
Tue, 14 Feb 2023 08:45:24 +0000 (09:45 +0100)
committerFred Morcos <fred.morcos@open-xchange.com>
Mon, 20 Feb 2023 10:22:47 +0000 (11:22 +0100)
ext/json11/json11.cpp

index b1da1fca2ab003851612dad7f7935f1dccce1a01..3ecfaffa2362ccfaf9e182f996cb6318a8a98c17 100644 (file)
@@ -43,15 +43,15 @@ using std::move;
  * it may not be orderable.
  */
 struct NullStruct {
-    bool operator==(NullStruct) const { return true; }
-    bool operator<(NullStruct) const { return false; }
+    bool operator==(NullStruct /*unused*/) const { return true; }
+    bool operator<(NullStruct /*unused*/) const { return false; }
 };
 
 /* * * * * * * * * * * * * * * * * * * *
  * Serialization
  */
 
-static void dump(NullStruct, string &out) {
+static void dump(NullStruct /*unused*/, string &out) {
     out += "null";
 }