Patch [3.4/3.3] cp-tree.h add __extension__ to the "checking" macros

Zack Weinberg
Thu Apr 3 06:49:00 GMT 2003

"Kaveh R. Ghazi" <> writes:

> This is the first of several patches to eliminate -pedantic warnings
> in cc1plus.  Doing this will allow us to compile g++ with any ISO C
> compiler, and thus perhaps use C++ in the java frontend and elsewhere
> by compiling cc1plus in stage1.

I approve the patches for these warnings:

>  713 ISO C forbids braced-groups within expressions
>   55 comma at end of enumerator list
>    4 ISO C does not allow extra `;' outside of a function
>    8 ??? format, ??? arg (arg ???)
>    7 `return' with a value, in function returning void
>   11 ISO C forbids use of conditional expressions as lvalues

There seems to be some question over exactly how to do the other one

>  216 bit-field `???' type invalid in ISO C

so I'll let you hammer it out with Jason and Geoff.


More information about the Gcc-patches mailing list