https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110047
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Maybe just diagnose at the point of conversions that are not just sign conversions but truncations/extensions? Note even then this will have a high rate of false positives (I'm myself always short-cutting 'unsigned int' to 'unsigned' ...) so it's more of a coding-style diagnostic where then warning for all plain 'unsigned' might be appropriate as well. So, maybe split it even. -Wconversion-bare-unsigned and -Wbare-unsigned?