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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Error and Warning MessagesA typecast does not yield an lvalue, e.g.:(int)c = 1; /* the contents of c cast to int is only a intermediate value */However you can write this using pointers:*(int *)&c = 1(203) illegal operation on a bit variable (Parser)Not all operations on bit variables are supported. This operation is one of those, e.g.:bit b;int * ip;ip = &b; /* woops -- cannot take the address of a bit object */(204) void function cannot return value (Parser)A void function cannot return a value. Any return statement should not be followed by an expression,e.g.:void run(void){step();return 1; /* either run should not be void, or remove the 1 */}(205) integral type required (Parser)This operator requires operands that are of integral type only.(206) illegal use of void expression (Parser)A void expression has no value and therefore you can’t use it anywhere an expression with a valueis required, e.g. as an operand to an arithmetic operator.(207) simple type required for * (Parser)A simple type (i.e. not an array or structure) is required as an operand to this operator.245

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

Saved successfully!

Ooh no, something went wrong!