On Fri, 1 Mar 2019 10:17:56 +0100
Philipp Klaus Krause <[email protected]> wrote:
> The C standard does not allow returning expressions in functions
> returning void. E.g. this
>
> static void attr_rtx (char *, char *);
> static char *attr_string (char *);
>
> static void
> attr_eq (char *name, char *value)
> {
> return attr_rtx (attr_string (name), attr_string (value));
> }
>
> is not allowed by the standard. However, GCC allows it as an extension.
> SDCC also currently allows it as an extension (i.e. when --std-cXX is
> not specified).
>
> Is anyone using that extension functionality?
Not knowingly. I cleaned a few of these up in Fuzix when compilers whined
about it. If it finds any more I'll just fix them.
Alan
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user