https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106416 --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- > The second warning looks wrong to me. It is right. Try doing the cast to int instead of a pointer (to int).