Fixed compiler warning from VS2017: testsuppressions.cpp(450): warning C4458: declaration of 'errmsg' hides class member. (#1397)

This commit is contained in:
orbitcowboy 2018-09-25 17:19:25 +02:00 committed by GitHub
parent 879803c90f
commit 2bbe73e04a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -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)