US grocery retailer Safeway has posted its third consecutive quarterly earnings decline, partly due to increased staff costs and competition from US retail giant Wal-Mart.