[Bug c/119011] -Wsign-compare: Don't diagnose with integer literals comparing to unsigned integers of rank no less than int
foss+gcc@alejandro-colomar.es
gcc-bugzilla@gcc.gnu.org
Tue Dec 9 00:16:30 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119011
Alejandro Colomar <foss+gcc@alejandro-colomar.es> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|-Wsign-compare: false |-Wsign-compare: Don't
|positive with integer |diagnose with integer
|literals comparing to |literals comparing to
|unsigned integers of rank |unsigned integers of rank
|no less than int |no less than int
--- Comment #22 from Alejandro Colomar <foss+gcc@alejandro-colomar.es> ---
I've now retitled, to not claim a false positive, but just ask for not
diagnosing it, however it is achieved.
More information about the Gcc-bugs
mailing list