Fix warning for ignored return value