11.07.2015 Views

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Error and Warning Messagesdouble dd;int i;i = dd; /* is this really what you meant? */If you do intend to use an expression like this, then indicate that this is so by a cast:i = (int)dd;(357) illegal conversion of integer to pointer (Parser)An integer has been assigned to or otherwise converted to a pointer type. This will usually mean youhave used the wrong variable, but if this is genuinely what you want to do, use a typecast to informthe compiler that you want the conversion and the warning will be suppressed. This may also meanyou have forgotten the & address operator, e.g.:int * ip;int i;ip = i; /* woops -- did you mean ip = &i ? */If you do intend to use an expression like this, then indicate that this is so by a cast:ip = (int *)i;(358) illegal conversion of pointer to integer (Parser)A pointer has been assigned to or otherwise converted to a integral type. This will usually mean youhave used the wrong variable, but if this is genuinely what you want to do, use a typecast to informthe compiler that you want the conversion and the warning will be suppressed. This may also meanyou have forgotten the * dereference operator, e.g.:int * ip;int i;i = ip; /* woops -- did you mean i = *ip ? */If you do intend to use an expression like this, then indicate that this is so by a cast:i = (int)ip;272

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!