diff --git a/.travis_suppressions b/.travis_suppressions index 2b8d75bad..3cbcd7020 100644 --- a/.travis_suppressions +++ b/.travis_suppressions @@ -3,6 +3,8 @@ redundantNextPrevious:test/testtoken.cpp simplePatternError:test/testtoken.cpp uselessAssignmentPtrArg:build/checkstl.cpp uselessAssignmentPtrArg:build/tokenize.cpp +passedByValue:build/symboldatabase.h +passedByValue:build/library.h *:gui/test* *:test/test.cxx *:test/cfg* diff --git a/test/testother.cpp b/test/testother.cpp index 0a2be3acd..e62758c93 100644 --- a/test/testother.cpp +++ b/test/testother.cpp @@ -1309,7 +1309,7 @@ private: ASSERT_EQUALS("", errout.str()); check("class Foo { static std::string s; };\nvoid f(const Foo foo) {}"); // Small class (static member) - ASSERT_EQUALS("[test.cpp:2]: (performance) Function parameter 'foo' should be passed by reference.\n", errout.str()); + ASSERT_EQUALS("", errout.str()); check("class X { std::string s; }; class Foo : X { };\nvoid f(const Foo foo) {}"); // Large class (inherited) ASSERT_EQUALS("[test.cpp:2]: (performance) Function parameter 'foo' should be passed by reference.\n", errout.str());