https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111730
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- You might want to add a check that x is not negative and I suspect that will fix the warning.
pinskia at gcc dot gnu.org via Gcc-bugs Sun, 08 Oct 2023 18:36:05 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111730
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- You might want to add a check that x is not negative and I suspect that will fix the warning.