US retail giant Wal-Mart has reported higher first-quarter earnings, but warned that high petrol prices could affect its customers.