McDonald’s posted better-than-expected sales in the first quarter but said high gas prices and consumer anxiety over the Iran war could dent sales this spring. The average price…