https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109056
--- Comment #3 from David Binderman <dcb314 at hotmail dot com> --- (In reply to Andrew Pinski from comment #2) > Which turns on -Wsign-conversion . -Wsign-conversion seems close, but not quite right. The problem is in potential overflow, not sign conversion. -Woverflow doesn't seem to do anything. Nor does -Wconversion.