Compiling (need --stack-auto, or a port where that is the default) the following code using SDCC from current trunk gives a warning, which I think should not be there;
int f(int i, int j)
{
return i + j;
}
typeof (int (*)(int, int)) g(void)
{
return &f; // Why do we get a warning here? Bug.
}
warning 60: function return value mismatch
from type 'int function ( int auto, int auto) __reentrant fixed'
to type 'int function ( int fixed, int fixed) __code* fixed'
Diff:
Fixed in the _Optional branch in [r16322].
Related
Commit: [r16322]
Fixed in the _Optional branch in [r16322].
Related
Commit: [r16322]