Wal-Mart sent market jitters when it slashed forecasts, but it isn’t the only major U.S. company with a gloomy outlook.