On Tue, Aug 5, 2014 at 4:22 PM, Reid Kleckner <[email protected]> wrote:

> IMO there is a big difference.  All compilers have always returned true
> for unsigned >= 0, but other compilers may return true for &reference ==
> nullptr.
>
> So, we can ignore the unsigned >= 0 warning so long as we are reasonably
> confident in past test coverage.
>
> However, with the &reference == nullptr behavior change, we don't have
> that confidence.  Therefore it is more severe.
>

FWIW, I think this might be a good reason to default the warning to on, but
it still seems like a somewhat tenuous argument for
'-Wno-tautological-compare' to leave this warning enabled...
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to