SW006012 Microchip Technology, SW006012 Datasheet - Page 47

C COMPILER FOR DSPIC30F FAMILY

SW006012

Manufacturer Part Number
SW006012
Description
C COMPILER FOR DSPIC30F FAMILY
Manufacturer
Microchip Technology
Type
MPLAB® C30 Compilerr
Series
PIC24 & DsPICr
Datasheets

Specifications of SW006012

Supported Families
PIC24, DsPIC30F And DsPIC33F
Core Architecture
PIC, DsPIC
Kit Contents
Software And Docs
Mcu Supported Families
PIC24 MCUs And DsPIC DSCs
Tool Type
Compiler
Processor Series
PIC24, dsPIC
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
dsPIC30F
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
© 2007 Microchip Technology Inc.
TABLE 3-5:
-Wswitch
-Wsystem-headers
-Wtrigraphs
-Wuninitialized
-Wunknown-pragmas
-Wunused
-Wunused-function
-Wunused-label
Option
WARNING/ERROR OPTIONS IMPLIED BY -WALL (CONTINUED)
Using MPLAB C30 C Compiler
Warn whenever a switch statement has an index of
enumeral type and lacks a case for one or more of the named
codes of that enumeration. (The presence of a default label
prevents this warning.) case labels outside the enumeration
range also provoke warnings when this option is used.
Print warning messages for constructs found in system
header files. Warnings from system headers are normally
suppressed, on the assumption that they usually do not
indicate real problems and would only make the compiler
output harder to read. Using this command line option tells
MPLAB C30 to emit warnings from system headers as if they
occurred in user code. However, note that using -Wall in
conjunction with this option will not warn about unknown
pragmas in system headers; for that, -Wunknown-pragmas
must also be used.
Warn if any trigraphs are encountered (assuming they are
enabled).
Warn if an automatic variable is used without first being
initialized.
These warnings are possible only when optimization is
enabled, because they require data flow information that is
computed only when optimizing.
These warnings occur only for variables that are candidates
for register allocation. Therefore, they do not occur for a
variable that is declared volatile, or whose address is
taken, or whose size is other than 1, 2, 4 or 8 bytes. Also,
they do not occur for structures, unions or arrays, even when
they are in registers.
Note that there may be no warning about a variable that is
used only to compute a value that itself is never used,
because such computations may be deleted by data flow
analysis before the warnings are printed.
Warn when a #pragma directive is encountered which is not
understood by MPLAB C30. If this command line option is
used, warnings will even be issued for unknown pragmas in
system header files. This is not the case if the warnings were
only enabled by the -Wall command line option.
Warn whenever a variable is unused aside from its
declaration, whenever a function is declared static but never
defined, whenever a label is declared but not used, and
whenever a statement computes a result that is explicitly not
used.
In order to get a warning about an unused function
parameter, both -W and -Wunused must be specified.
Casting an expression to void suppresses this warning for an
expression. Similarly, the unused attribute suppresses this
warning for unused variables, parameters and labels.
Warn whenever a static function is declared but not defined
or a non-inline static function is unused.
Warn whenever a label is declared but not used. To suppress
this warning, use the unused attribute (see
Section 2.3.1 “Specifying Attributes of Variables”).
Definition
DS51284F-page 41

Related parts for SW006012