US wholesale retailer Costco has warned that second-quarter earnings will miss analysts forecasts due to its "aggressive pricing", lower profits from gasoline and a strengthening US dollar.