style: unusedStructMember - class member 'UnUsedStructMemberExampleTest::fakeTimestamp' is never used.
class UnUsedStructMemberExampleTest: public Test { public: UnUsedStructMemberExampleTest() = default; const unsigned long int fakeTimestamp = 100000; void ExampleFunction(unsigned long int data) { EXPECT_TRUE(data != 0u); } }; TEST_F(UnUsedStructMemberExampleTest, ShowProblem) { ExampleFunction(fakeTimestamp); }
Note, I am using the google test library now too and this is in 2.14.
Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/12782
Log in to post a comment.
style: unusedStructMember - class member 'UnUsedStructMemberExampleTest::fakeTimestamp' is never used.
Note, I am using the google test library now too and this is in 2.14.
Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/12782