From 2bbe73e04a9eac673a2ef384612a815e636ab199 Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Tue, 25 Sep 2018 17:19:25 +0200 Subject: [PATCH] Fixed compiler warning from VS2017: testsuppressions.cpp(450): warning C4458: declaration of 'errmsg' hides class member. (#1397) --- test/testsuppressions.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/testsuppressions.cpp b/test/testsuppressions.cpp index ec5fd3007..7228887af 100644 --- a/test/testsuppressions.cpp +++ b/test/testsuppressions.cpp @@ -447,13 +447,13 @@ private: void inlinesuppress_comment() { Suppressions::Suppression s; - std::string errmsg; - ASSERT_EQUALS(true, s.parseComment("// cppcheck-suppress abc ; some comment", &errmsg)); - ASSERT_EQUALS("", errmsg); - ASSERT_EQUALS(true, s.parseComment("// cppcheck-suppress abc // some comment", &errmsg)); - ASSERT_EQUALS("", errmsg); - ASSERT_EQUALS(true, s.parseComment("// cppcheck-suppress abc -- some comment", &errmsg)); - ASSERT_EQUALS("", errmsg); + std::string errMsg; + ASSERT_EQUALS(true, s.parseComment("// cppcheck-suppress abc ; some comment", &errMsg)); + ASSERT_EQUALS("", errMsg); + ASSERT_EQUALS(true, s.parseComment("// cppcheck-suppress abc // some comment", &errMsg)); + ASSERT_EQUALS("", errMsg); + ASSERT_EQUALS(true, s.parseComment("// cppcheck-suppress abc -- some comment", &errMsg)); + ASSERT_EQUALS("", errMsg); } void globalSuppressions() { // Testing that Cppcheck::useGlobalSuppressions works (#8515)