-Wtraditional patch to detect unary plus op & automatic aggregate init
Jeffrey A Law
law@cygnus.com
Tue Jul 11 21:26:00 GMT 2000
In message < 200007091824.OAA22222@caip.rutgers.edu >you write:
> This patch enhances -Wtraditional to detect the use of the unary plus
> operator and automatic aggregate initialization. Both of these are
> rejected by traditional C.
>
> I'm midway through stage2 on i686-pc-linux-gnu and it managed to
> detect the unary plus operator usage in cppexp.c:845 which is killing
> sunos4 bootstraps recently. No problems so far.
>
> Assuming bootstrap completes, okay to install?
>
> --Kaveh
>
>
>
> 2000-07-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
>
> * c-parse.in (unop +): Warn about the unary plus operator for
> traditional C.
>
> * c-typeck.c (store_init_value): Warn about automatic aggregate
> initialization for traditional C.
>
> * invoke.texi (-Wtraditional): Document new warnings.
This is fine. Please install this patch.
Thanks,
jeff
More information about the Gcc-patches
mailing list