[PATCH] D51545: Enable -Wtautological-unsigned-zero-compare under -Wextra

Roman Lebedev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 31 09:24:52 PDT 2018


lebedev.ri added reviewers: thakis, vsk, phosek.
lebedev.ri added a comment.

In https://reviews.llvm.org/D51545#1220967, @eandrews wrote:

> @lebedev.ri is there a specific reason -Wtautological-unsigned-zero-compare was removed? All the issues I am aware of talks about comparisons with min/max.


Dunno.
Comparison with zero, i would imagine, has the same problem as comparisons with min/max, since comparisons with min == comparison with zero, for unsigned types.


https://reviews.llvm.org/D51545





More information about the cfe-commits mailing list