fix some loop gcc werror error