https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110933
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Try -Wconversion. Also there is no overflow here as unsigned is always defined as wrapping.
pinskia at gcc dot gnu.org via Gcc-bugs Mon, 07 Aug 2023 07:32:13 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110933
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Try -Wconversion. Also there is no overflow here as unsigned is always defined as wrapping.