This is the mail archive of the gcc-patches@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: -Wtraditional vs glibc


On Fri, 21 Dec 2001, Richard Henderson wrote:

> Fixes
> 
> Number of warning types:
>     672 traditional C rejects automatic aggregate initialization
> 
> which comes from glibc's clever string copy macros.
> 
> 
> r~
> 
> 
>         * c-parse.in (SAVE_WARN_FLAGS): Save warn_traditional.
>         (RESTORE_WARN_FLAGS): Restore it.
>         (extension): Zero warn_traditional.

You should have a testcase (perhaps by adding a suitable case, with
__extension__, to wtr-aggr-init-1.c).

-- 
Joseph S. Myers
jsm28@cam.ac.uk


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