[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] [Highwire] gcc4



Am Sonntag, den 05.09.2010, 23:23 +0200 schrieb Eero Tamminen
<oak@helsinkinet.fi>:
 
> If something is defined as const, GCC may be doing optimizations
> that actually assume its contents not to be changing...  It would
> be much better to use corrent types from the beginning instead of
> kluding things using casts.
>

Yes, but many C functions expect char *, so if you wan't to pass
something that is defined as const char * you have to cast.