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(241) initialization syntax (Parser)The initialisation of this object is syntactically incorrect. Check for the correct placement and numberof braces and commas, e.g.:int iarray[10] = {{’a’, ’b’, ’c’}; /* woops -- one two many {s */(242) illegal type for switch expression (Parser)A switch operation must have an expression that is either an integral type or an enumerated value,e.g:double d;switch(d) { /* woops -- this must be integral */case ’1.0’:d = 0;}(243) inappropriate break/continue (Parser)A break or continue statement has been found that is not enclosed in an appropriate control structure.A continue can only be used inside a while, for or do while loop, while break can only beused inside those loops or a switch statement, e.g.:switch(input) {case 0:if(output == 0)input = 0xff;} /* woops -- this shouldn’t be here and closed the switch */break; /* this should be inside the switch */(244) default case redefined (Parser)There is only allowed to be one default label in a switch statement. You have more than one, e.g.:switch(a) {default: /* if this is the default case... */b = 9;break;default: /* then what is this? */b = 10;break;251

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

Saved successfully!

Ooh no, something went wrong!