Hi!

It's not the char but the SIGNED char that's causing the warning, as it might 
lead to negative index values. Use of an unsigned char for the index will work 
without warning (and without casting).
It's not an error anyway, as it is completely legal to use a signed char and as 
long as it is kept below 128, all is well. And there might be some usages where 
a negative index IS wanted.

JMGross

----- Ursprüngliche Nachricht -----
Von: Matthias Hartmann
An: GCC for MSP430 - http://mspgcc.sf.net
Gesendet am: 01 Mrz 2009 15:34:50
Betreff: Re: [Mspgcc-users] section .data [0000fc00 -> 0000fc01] overlaps 
section .text

Tamas,

you may get rid of the last warning, by casting the char to an unsigned int
      U1TXBUF = buffer[ (short unsigned int) i ];                  //
Send data



Reply via email to