From: Tomek Mrugalski Date: Fri, 17 Feb 2017 12:22:46 +0000 (+0100) Subject: [5110] Two more compilation warnings removed. X-Git-Tag: trac1205_base^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1d812827ac864e4409cec741017fddf8d035939;p=thirdparty%2Fkea.git [5110] Two more compilation warnings removed. --- diff --git a/src/bin/d2/tests/d2_simple_parser_unittest.cc b/src/bin/d2/tests/d2_simple_parser_unittest.cc index 1c496d0a35..07d8357b45 100644 --- a/src/bin/d2/tests/d2_simple_parser_unittest.cc +++ b/src/bin/d2/tests/d2_simple_parser_unittest.cc @@ -183,7 +183,6 @@ public: /// if parsing should succeed. ::testing::AssertionResult parseOrFail(const std::string& json, const std::string& exp_error) { - bool failed = false; try { // Free up objects created by previous invocation reset(); @@ -240,7 +239,10 @@ protected: /// /// @param config element tree in which defaults should be added /// @return the number of default items added to the tree - virtual size_t setDefaults(data::ElementPtr config) { return (0); } + virtual size_t setDefaults(data::ElementPtr config) { + static_cast(config); + return (0); + } /// @brief Parses a given element tree into D2 object(s) /// @@ -250,7 +252,9 @@ protected: /// outside of this method. /// /// @param config element tree to parse - virtual void parseElement(data::ConstElementPtr config) {}; + virtual void parseElement(data::ConstElementPtr config) { + static_cast(config); + } D2ParserContext::ParserType parser_type_; };