Walmart raised its full-year forecast and reported better-than-expected first-quarter results on Thursday.