Default warnings and useless extensions (e.g. arithmetic on void *)
Robert Dewar
dewar@adacore.com
Tue Jun 10 12:41:00 GMT 2008
Vincent Lefevre wrote:
> On 2008-06-10 06:45:43 -0400, Tim Prince wrote:
>> long long is an extension, if you don't specify -std=c99.
>
> I know that. But I can't use -std=c99 because it doesn't work with
> old gcc versions.
>
>> You ask for warnings about extensions, you get them.
>
> No, I'm not asking warnings about extensions. I'm asking warnings
> about *useless* extensions, i.e. those for which a portable workaround
> is possible, e.g. replace p + 1 by (char *) p + 1 when p is a void *.
Clearly if everyone agreed that an extension was useless it would
not be there, so this argument makes no sense to me.
>
>> Why didn't you post this on gcc-help?
>
> Because this is a feature request.
>
More information about the Gcc
mailing list