This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C99 usage in gcc [was Re: build failure on mainline due tojava/expr.c]
Michael Matz <matz@suse.de> writes:
> Hi,
>
> On Fri, 30 Jan 2004, Andrew Haley wrote:
>
>> Compiling this testcase:
>>
>> int foo (void)
>> {
>> int a = 99;
>> a++;
>> int b = a;
>> return b;
>> }
>>
>> with "-Wall -std=c89" doesn't seem to generate any warnings either.
>
> It is a pedwarn, hence you need -pedantic also.
Which is useful, except that it also complains about:
#ifdef __cplusplus
// foo
#endif