SW006015 Microchip Technology, SW006015 Datasheet - Page 23

C COMPILER MPLAB C32

SW006015

Manufacturer Part Number
SW006015
Description
C COMPILER MPLAB C32
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC32r
Datasheets

Specifications of SW006015

Supported Families
PIC32MX5, MX6, And MX7
Core Architecture
PIC
Kit Contents
Software And Docs
Mcu Supported Families
PIC32 MCUs
Tool Function
Compiler
Supported Devices
PIC32 MCUs
Tool Type
Compiler
Processor Series
PIC32
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC32
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
© 2007 Microchip Technology Inc.
1.8.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 C32 C Compiler.
TABLE 1-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 AND ERROR OPTIONS IMPLIED BY
-WALL
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
DS51686A-page 19

Related parts for SW006015