From b6265203bbfca7a89d25de6a22144b44e98ca08d Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Sat, 19 Oct 2019 17:44:14 +0300 Subject: [PATCH] json.hh: Fix shadowing arg MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit json.hh:39:42: warning: declaration of ‘what’ shadows a member of 'this' [-Wshadow] --- pdns/json.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/json.hh b/pdns/json.hh index 69deb48faf..12cda8eea1 100644 --- a/pdns/json.hh +++ b/pdns/json.hh @@ -36,6 +36,6 @@ bool boolFromJson(const json11::Json container, const std::string& key, const bo class JsonException : public std::runtime_error { public: - JsonException(const std::string& what) : std::runtime_error(what) { + JsonException(const std::string& what_arg) : std::runtime_error(what_arg) { } }; -- 2.47.2