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: [C PATCH] Make -Wno-implicit-int work in C99 mode


On Fri, 17 Oct 2014, Marek Polacek wrote:

> C99 mode warns about defaulting to int by default, but without
> the possibility to suppress the warning with -Wno-implicit-int.
> This is likely to arouse the ire of the users, especially with
> the new default.
> 
> Therefore the following patch tweaks warn_implicit_int in such
> a way that -Wimplicit and -Wimplicit-int should work as intended
> (following the rule that more specific option takes precedence
> over the less specific).  There should be no changes in GNU89
> mode.
> 
> Bootstrapped/regtested on x86_64-linux, ok for trunk?

OK.

-- 
Joseph S. Myers
joseph@codesourcery.com


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