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 />

TABLE 3-5: WARNING/ERROR OPTIONS IMPLIED BY -WALL (CONTINUED)<br />

Option Definition<br />

-Wunused-parameter Warn whenever a function parameter is unused aside from its<br />

declaration. To suppress this warning, use the unused<br />

attribute (see Section 2.3.1 “Specifying Attributes of<br />

Variables”).<br />

-Wunused-variable Warn whenever a local variable or non-constant static<br />

variable is unused aside from its declaration. To suppress this<br />

warning, use the unused attribute (see<br />

Section 2.3.1 “Specifying Attributes of Variables”).<br />

-Wunused-value Warn whenever a statement computes a result that is<br />

explicitly not used. To suppress this warning, cast the<br />

expression to void.<br />

The following -W options are not implied by -Wall. Some of them warn about constructions<br />

that users generally do not consider questionable, but which occasionally you<br />

might wish to check <strong>for</strong>. Others warn about constructions that are necessary or hard to<br />

avoid in some cases, <strong>and</strong> there is no simple way to modify the code to suppress the<br />

warning.<br />

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

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

Saved successfully!

Ooh no, something went wrong!