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 Messagesint process(int a){extern int away; /* this would be better outside the function */return away + a;}(348) auto variable * should not be qualified (Parser)An auto variable should not have qualifiers such as near or far associated with it. Its storage classis implicitly defined by the stack organization. An auto variable may be qualified with static, butit is then no longer auto.(349) non-prototyped function declaration: * (Parser)A function has been declared using old-style (K&R) arguments. It is preferable to use prototypedeclarations for all functions, e.g.:int process(input)int input; /* warning flagged here */{}This would be better written:int process(int input){}(350) unused *: * (from line *) (Parser)The indicated object was never used in the function or module being compiled. Either this object isredundant, or the code that was meant to use it was excluded from compilation or misspelt the nameof the object. Note that the symbols rcsid and sccsid are never reported as being unused.(352) float param coerced to double (Parser)Where a non-prototyped function has a parameter declared as float, the compiler converts this intoa double float. This is because the default C type conversion conventions provide that when afloating point number is passed to a non-prototyped function, it will be converted to double. It isimportant that the function declaration be consistent with this convention, e.g.:270

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

Saved successfully!

Ooh no, something went wrong!