On 13 May Torsten Hahn wrote:
for( i=count; i==0; i--)
{
printData( i, ram[i] );
}
Your condition is (i == 0) - it should be (i > 0). GCC has detected
that this
loop can only possibly be executed once, if i is 0, and has omitted
the loop.
By a similar method, GCC can also remove the entire statement without
even a
warning.
HTH,
--
Christian Ludlam
address@hidden
_______________________________________________
avr-gcc-list mailing list
address@hidden
http://www.avr1.org/mailman/listinfo/avr-gcc-list