At 12:00am -0700 01-08-08, Palm Developer Forum digest wrote: >Subject: Warning: assigment discard qualifiers from pointer target >type - why ? >From: Wojtek <[EMAIL PROTECTED]> >Date: Tue, 07 Aug 2001 10:35:14 +0200 >X-Message-Number: 5 > >my code: >define NON_INTERNATIONAL > >UInt16 *attr; > >attr=GetCharAttr(); > > >what's the problem? Looking at the declaration for GetCharAttr() in CharAttr.h, I see: const UInt16 *GetCharAttr (void) Since this returns a const UInt16*, I'm guessing that your problem is a missing 'const' from your attr variable. The meta-problem could be that you're trying to use an obsolete routine (GetCharAttr) which might soon be disappearing - somehow the compiler senses this, and is trying to encourage you to use TxtCharAttr or the TxtCharIsXXX macros. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
