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: PING: [PATCH] Implement warning for wrong use of ||/&&


2007/2/19, Manuel López-Ibáñez <lopezibanez@gmail.com>:

I think it still makes sense that -Walways-true warns for things that
are always true or always false. For example, "comparison of unsigned
> 0 is always true" and "comparison of unsigned < 0 is always false"
make sense to be together. However, I don't feel very strong about
this. So, if something else is considered a better name, I can
implement that. Let's hear Gabriel's opinion on this.

As a passer-by, how about "-Wlogical-invariant"?


Daniel


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