General Mills has maintained its full-year earnings forecast despite warning that commodity costs will climb higher than anticipated.