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/c++] PR35058: -Werror= works only with some warnings


On Tue, 22 Jul 2008, Manuel López-Ibáñez wrote:

> To be honest, I am not sure why I did that. So I guess that should be:
> 
> if (pedantic)
> pedwarn (OPT_pedantic, "");
> else if (extra_warnings)
> warning (OPT_Wextra, "");
> 
> If you look the case below that one, you'll notice that -Wextra warns
> for p > 0 but not for 0 < p, which seems inconsistent. Should I fix
> that or it is on purpose?

I think it should be fixed in a separate patch.

-- 
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]