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 Messages(761) sizeof yields 0 (Code Generator)The code generator has taken the size of an object and found it to be zero. This almost certainlyindicates an error in your declaration of a pointer, e.g. you may have declared a pointer to a zerolength array. In general, pointers to arrays are of little use. If you require a pointer to an array ofobjects of unknown length, you only need a pointer to a single object that can then be indexed orincremented.(763) constant left operand to ? (Code Generator)The left operand to a conditional operator ? is constant, thus the result of the tertiary operator ?:will always be the same, e.g.:a = 8 ? b : c; /* this is the same as saying a = b; */(764) mismatched comparison (Code Generator)A comparison is being made between a variable or expression and a constant value which is not inthe range of possible values for that expression, e.g.:unsigned char c;if(c > 300) /* woops -- how can this be true? */close();(765) degenerate unsigned comparison (Code Generator)There is a comparison of an unsigned value with zero, which will always be true or false, e.g.:unsigned char c;if(c >= 0)will always be true, because an unsigned value can never be less than zero.(766) degenerate signed comparison (Code Generator)There is a comparison of a signed value with the most negative value possible for this type, suchthat the comparison will always be true or false, e.g.:char c;if(c >= -128)will always be true, because an 8 bit signed char has a maximum negative value of -128.309

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

Saved successfully!

Ooh no, something went wrong!