http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59293
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I don't think this is a bogus warning as the warning is correct as you have a signed int variable > unsigned int variable. The compiler does not know that variable is assigned to a constant here.