CheckerGccPlugins: Fix false positive on call via a member function pointer.
We could get a false positive from the thread-safety checker about discarded const on calls via a member function pointer:
struct C {
int doit(int i) const;
template<typename F>
int func(F f) const {
return (this->*f)(42);
}
};
void foo() {
C c;
c.func(&C::doit);
}
Fixed. Thanks to Frank W. for the report.