A list comprehension where the result is not used is optimized away in any case.