Pablo Varela Anton

Removing Dead Code & pragma instruction

Discussion created by Pablo Varela Anton on Oct 26, 2010
Latest reply on Nov 2, 2010 by Tom Thompson

Hi.

 

I'm using CodeWarrior 6.2 to program Dz128. In my code there are senteces like for (i=0;i<200; i++); to make active waitings. When I compile it, I check that appears warnigs likeC5560: Removed dead code, and I don't want that. If I use pragma instruction #pragma opt_dead_code off  in my code, I received this warnig: C4201: pragma opt_dead_code was not handled.

 

Anyone knows how could I avoid this removing?

 

Thanks a lot.

Outcomes