07.04.2013 Views

MPLAB C Compiler for PIC24 MCUs and dsPIC DSCs ... - Microchip

MPLAB C Compiler for PIC24 MCUs and dsPIC DSCs ... - Microchip

MPLAB C Compiler for PIC24 MCUs and dsPIC DSCs ... - Microchip

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

16-Bit C <strong>Compiler</strong> User’s Guide<br />

R<br />

“name” re-asserted<br />

The answer <strong>for</strong> "name" has been duplicated.<br />

“name” redefined<br />

“name” was previously defined <strong>and</strong> is being redefined now.<br />

redefinition of ‘identifier’<br />

The specified identifier has multiple, incompatible definitions.<br />

redundant redeclaration of ‘identifier’ in same scope<br />

The specified identifier was re-declared in the same scope. This is redundant.<br />

register used <strong>for</strong> two global register variables<br />

Two global register variables have been defined to use the same register.<br />

repeated ‘flag’ flag in <strong>for</strong>mat<br />

When checking the argument list of a call to strftime, the compiler found that there was<br />

a flag in the <strong>for</strong>mat string that is repeated.<br />

When checking the argument list of a call to printf, scanf, etc., the compiler found that<br />

one of the flags { ,+,#,0,-} was repeated in the <strong>for</strong>mat string.<br />

return-type defaults to ‘int’<br />

In the absence of an explicit function return-type declaration, the compiler assumes<br />

that the function returns an int.<br />

return type of ‘name’ is not ‘int’<br />

The compiler is expecting the return type of ‘name’ to be ‘int’.<br />

‘return’ with a value, in function returning void<br />

The function was declared as void but returned a value.<br />

‘return’ with no value, in function returning non-void<br />

A function declared to return a non-void value contains a return statement with no<br />

value. This is inconsistent.<br />

right shift count >= width of type<br />

Shift counts should be less than the number of bits in the type being shifted. Otherwise,<br />

the shift is meaningless, <strong>and</strong> the result is undefined.<br />

right shift count is negative<br />

Shift counts should be positive. A negative right shift count does not mean shift left; it<br />

is meaningless.<br />

S<br />

second argument of ‘identifier’ should be ‘char **’<br />

Expecting second argument of specified identifier to be of type ‘char **’.<br />

second parameter of ‘va_start’ not last named argument<br />

The second parameter of ‘va_start’ must be the last named argument.<br />

shadowing built-in function ‘identifier’<br />

The specified function has the same name as a built-in function, <strong>and</strong> consequently<br />

shadows the built-in function.<br />

shadowing library function ‘identifier’<br />

The specified function has the same name as a library function, <strong>and</strong> consequently<br />

shadows the library function.<br />

DS51284H-page 196 © 2008 <strong>Microchip</strong> Technology Inc.

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

Saved successfully!

Ooh no, something went wrong!