My function is defined like this in a header:
And I define it like this in a particular program:
typedef int(*TFComp)(const void *, const void *);
I use it in another function, defined like this:
int cmp(const Ax m, const Ax n)
Ax is a pointer to a struct.
void *Locate(..., TFComp cmp)
I get this warning message from the compiler:
[Warning] passing arg 5 of `Locate' from incompatible pointer type
It runs fine, the function does it's job, but I don't understand what that warning means.