At 21:18 2003-2-15 -0500, you wrote:
Try turning on your optimizer, level 1 or higher. With that, it would have detected the dead code for isZero = true, and would then notice that izZero could not have been given a value at its use in myFunction. Without the optimizer on, it doesn't track values, so it doesn't know the set will never happen.I came across a bug in my code where my variable wasn't being initialized. It went something like this:Boolean isZero; UInt16 a = 3; if (a == 0) isZero = true; myFunction(isZero); I'm not getting warned that "isZero" never gets set. I looked around for a setting but didn't find anything. Is there a way to make CW detect bugs like this?
--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
