void (*FC) (void);
void Function (void) {
__no_operation();
}
void *FCaddress = &Function;
void Main (void) {
// Direct
FC = &Function;
//Via a variable
FC = FCaddress;
FC();
}
The above code line ‘FC = FCaddress;’ results in;
warning: a value of type "void *" cannot be assigned to an entity of type "void (*)(void)
The code works fine, how to avoid this warning?