Cześć szukam pomocy , przeskanowalem kod CPPcheckiem
wywala mi warning :
portability Returning an integer in a function with pointer return type is not portable.
int (*wsk(enum operations op))(int,int)
{
int (*funcs[4])(int,int)=
{
add,
sub,
div,
mul
};
if(op==op_add)
{
return *(funcs + 0);
}else if(op==op_sub)
{
return *(funcs + 1);
}else if(op==op_div)
{
return *(funcs + 2);
}else if(op==op_mul)
{
return *(funcs + 3);
}else
{
return NULL;
}
}