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: PR c/44774 -Werror=edantic


On Sun, Apr 22, 2012 at 10:50 AM, Manuel López-Ibáñez
<lopezibanez@gmail.com> wrote:
> This patch makes Wpedantic the canonical form of -pedantic. This makes
> -Wno-pedantic, -Werror=pedantic, #pragma diagnostics and other parts
> of the diagnostic machinery that expect warning options to start with
> -W, work with -Wpedantic.
>
> I did not touch -pedantic-errors, because it is not exactly equivalent
> to -Werror=pedantic. The fix there may be to have a new -Wpedantic-all
> that controls -Wpedantic + all the uncontrollable pedwarns, then
> -Werror=pedantic-all would be exactly equivalent to -pedantic-errors.
> But apart from consistency, I don't see much benefit, so I am not
> going to work on that.
>
> Bootstrapped + tested with enable-languages=all,objc++,ada.
>
> OK?

OK.

The longer-term fix is to eliminate the distinction between
-pedantic-errors and -Werror=pedantic.
Also, eventually calls to pedwarns should be unconditional and
finer-grained instead of the
current catchall OPT_Wpedantic.


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