SW006012 Microchip Technology, SW006012 Datasheet - Page 45

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.
3.5.4
Warnings are diagnostic messages that report constructions that are not inherently
erroneous but that are risky or suggest there may have been an error.
You can request many specific warnings with options beginning -W, for example,
-Wimplicit, to request warnings on implicit declarations. Each of these specific
warning options also has a negative form beginning -Wno- to turn off warnings, for
example, -Wno-implicit. This manual lists only one of the two forms, whichever is
not the default.
The following options control the amount and kinds of warnings produced by the
MPLAB C30 C Compiler.
TABLE 3-5:
-fsyntax-only
-pedantic
-pedantic-errors
-w
-Wall
-Wchar-subscripts
-Wcomment
-Wcomments
-Wdiv-by-zero
-Werror-implicit-
-Wformat
-Wimplicit
-Wimplicit-function-
-Wimplicit-int
-Wmain
-Wmissing-braces
function-declaration
declaration
Options for Controlling Warnings and Errors
Option
WARNING/ERROR OPTIONS IMPLIED BY -WALL
Using MPLAB C30 C Compiler
Check the code for syntax, but don’t do anything beyond that.
Issue all the warnings demanded by strict ANSI C; reject all
programs that use forbidden extensions.
Like -pedantic, except that errors are produced rather than
warnings.
Inhibit all warning messages.
All of the -W options listed in this table combined. This
enables all the warnings about constructions that some users
consider questionable, and that are easy to avoid (or modify
to prevent the warning), even in conjunction with macros.
Warn if an array subscript has type char.
Warn whenever a comment-start sequence /* appears in a
/* comment, or whenever a Backslash-Newline appears in a
// comment.
Warn about compile-time integer division by zero. To inhibit
the warning messages, use -Wno-div-by-zero. Floating
point division by zero is not warned about, as it can be a
legitimate way of obtaining infinities and NaNs.
(This is the default.)
Give an error whenever a function is used before being
declared.
Check calls to printf and scanf, etc., to make sure that
the arguments supplied have types appropriate to the format
string specified.
Equivalent to specifying both -Wimplicit-int and
-Wimplicit-function-declaration.
Give a warning whenever a function is used before being
declared.
Warn when a declaration does not specify a type.
Warn if the type of main is suspicious. main should be a
function with external linkage, returning int, taking either
zero, two or three arguments of appropriate types.
Warn if an aggregate or union initializer is not fully bracketed.
In the following example, the initializer for a is not fully
bracketed, but that for b is fully bracketed.
int a[2][2] = { 0, 1, 2, 3 };
int b[2][2] = { { 0, 1 }, { 2, 3 } };
Definition
DS51284F-page 39

Related parts for SW006012