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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

duplicate ‘const’<br />

The ‘const’ qualifier should be applied to a declaration only once.<br />

duplicate ‘restrict’<br />

The ‘restrict’ qualifier should be applied to a declaration only once.<br />

duplicate ‘volatile’<br />

The ‘volatile’ qualifier should be applied to a declaration only once.<br />

E<br />

Diagnostics<br />

embedded ‘\0’ in <strong>for</strong>mat<br />

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

the <strong>for</strong>mat string contains an embedded ‘\0’ (zero), which can cause early termination<br />

of <strong>for</strong>mat string processing.<br />

empty body in an else-statement<br />

An else statement is empty.<br />

empty body in an if-statement<br />

An if statement is empty.<br />

empty declaration<br />

The declaration contains no names to declare.<br />

empty range specified<br />

The range of values in a case range is empty, that is, the value of the low expression<br />

is greater than the value of the high expression. Recall that the syntax <strong>for</strong> case ranges<br />

is case low ... high:.<br />

‘enum identifier’ declared inside parameter list<br />

The specified enum is declared inside a function parameter list. It is usually better<br />

programming practice to declare enums outside parameter lists, since they can never<br />

become complete types when defined inside parameter lists.<br />

enum defined inside parms<br />

An enum is defined inside a function parameter list.<br />

enumeration value ‘identifier’ not h<strong>and</strong>led in switch<br />

The controlling expression of a switch statement is an enumeration type, yet not all<br />

enumeration values have case expressions.<br />

enumeration values exceed range of largest integer<br />

Enumeration values are represented as integers. The compiler detected that an<br />

enumeration range cannot be represented in any of the compiler integer <strong>for</strong>mats,<br />

including the largest such <strong>for</strong>mat.<br />

excess elements in array initializer<br />

There are more elements in the initializer list than the array was declared with.<br />

excess elements in scalar initializer");<br />

There should be only one initializer <strong>for</strong> a scalar variable.<br />

excess elements in struct initializer<br />

There are more elements in the initializer list than the structure was declared with.<br />

excess elements in union initializer<br />

There are more elements in the initializer list than the union was declared with.<br />

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

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

Saved successfully!

Ooh no, something went wrong!