This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Default warnings and useless extensions (e.g. arithmetic on void *)


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.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]