From: Aki Tuomi Date: Sat, 19 Oct 2019 14:44:14 +0000 (+0300) Subject: json.hh: Fix shadowing arg X-Git-Tag: dnsdist-1.4.0~15^2~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b6265203bbfca7a89d25de6a22144b44e98ca08d;p=thirdparty%2Fpdns.git json.hh: Fix shadowing arg json.hh:39:42: warning: declaration of ‘what’ shadows a member of 'this' [-Wshadow] --- 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) { } };