Sounds like some aggrressive compiler optimisation! I could see similar with GCC at -O2.

The compiler has determined that some of your code is pointless and can be removed.



void...