It removes the situation when compiler is optimizing out std::max_element() call entirely because its result is never used.