https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101645
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|-Wsign-conversion misses |warn about neg of unsigned |negation of unsigned int |type should be added to | |-Wsign-conversion Keywords| |diagnostic Severity|normal |enhancement --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I don't know if this is useful to even to add to -Wsign-conversion. The documentation is clear here: Warn for implicit conversions that may change the sign of an integer value, like assigning a signed integer expression to an unsigned integer variable. - is just two comp not rather than neg :)