https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98819
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think you misunderstood the diagnostic. It is saying unsigned int is for %u. The type you have is int.
pinskia at gcc dot gnu.org via Gcc-bugs Mon, 25 Jan 2021 02:37:04 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98819
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think you misunderstood the diagnostic. It is saying unsigned int is for %u. The type you have is int.