Sorry I don't know the portable way to check the disassemble result.
However I did check the disassemble result by hand, in Windows. Without `-O`, this dummy variable will be allocated on stack. But with `-O`, it has been completely removed.