Fixed compiler warning from VS2017: testsuppressions.cpp(450): warning C4458: declaration of 'errmsg' hides class member. (#1397)
This commit is contained in:
parent
879803c90f
commit
2bbe73e04a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue