This is the mail archive of the
mailing list for the GCC project.
Re: [C/C++/IRA] PR 16302 gcc fails to warn about some common logic errors
Manuel López-Ibáñez wrote:
> -Wlogical-op has never been part of -Wextra in any released GCC.
OK, I think that's a good argument for moving it back out, then.
> On the other hand, I wonder if some of the warnings are just some bug
> in the logic, like the one for "if (foo & 0 && x)" that I fixed
> already. Those could (and should) be fixed.
Yes, of course, we should try to make the warning as sensible as special.
(650) 331-3385 x713