Skip to content

Instantly share code, notes, and snippets.

@nazgob
Created June 22, 2011 09:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nazgob/1039787 to your computer and use it in GitHub Desktop.
Save nazgob/1039787 to your computer and use it in GitHub Desktop.
cppcheck false positive / unused private function
class Foo
{
public:
Foo& operator++();
private:
void Bar() const {
}
};
Foo& Foo::operator++()
{
Bar();
return *this;
}
// [unused_private_function.cpp:6]: (style) Unused private function 'Foo::Bar'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment