From: Fred Morcos Date: Tue, 14 Feb 2023 08:45:24 +0000 (+0100) Subject: JSON11: Fix unnamed arguments X-Git-Tag: dnsdist-1.8.0-rc1~3^2~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9444694c776df6a390621a644c883990b7ce2971;p=thirdparty%2Fpdns.git JSON11: Fix unnamed arguments --- diff --git a/ext/json11/json11.cpp b/ext/json11/json11.cpp index b1da1fca2a..3ecfaffa23 100644 --- a/ext/json11/json11.cpp +++ b/ext/json11/json11.cpp @@ -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"; }