Searching \ for 'C-18 pointers to global variables...' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/index.htm?key=pointers+global
Search entire site for: 'C-18 pointers to global variables...'.

Truncated match.
PICList Thread
'C-18 pointers to global variables...'
2002\08\19@105434 by mike

flavicon
face
Can anyone help me - I'm trying to pass a pointer to a large-ish (312)
element global array variable and am getting a suspicious pointer
conversion warning.

The global variable is assigned like this at the top of the file:

Pragma udata graphics=0x300
Static unsigned gphParameters[312];
Pragma udata

And further into the code I do the following:-

lcdDrawText(gphParameters,paramstr);

Where the function prototype looks like this:-

Void lcdDrawText(char *dest,char *src);

It has no problem when gphParameters is a local variable, and I have
tried declaring *dest as a FAR variable but it didn't work either.

The code does actually work - but I don't like warnings!!

Best regards,

Mike Griffin.

--
http://www.piclist.com hint: To leave the PICList
spam_OUTpiclist-unsubscribe-requestTakeThisOuTspammitvma.mit.edu


More... (looser matching)
- Last day of these posts
- In 2002 , 2003 only
- Today
- New search...