Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

MPLAB
®
XC16 C Compiler Users Guide
DS50002071C-page 88 2012-2013 Microchip Technology Inc.
-Wimplicit-function-
declaration
Give a warning whenever a function is used before being
declared.
-Wimplicit-int Warn when a declaration does not specify a type.
-Wmain Warn if the type of main is suspicious. main should be a func-
tion with external linkage, returning int, taking either zero, two
or three arguments of appropriate types.
-Wmissing-braces 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 } };
-Wmultichar
-Wno-multichar
Warn if a multi-character character constant is used.
Usually, such constants are typographical errors. Since they
have implementation-defined values, they should not be used in
portable code. The following example illustrates the use of a
multi-character character constant:
char
xx(void)
{
return('xx');
}
-Wparentheses Warn if parentheses are omitted in certain contexts, such as
when there is an assignment in a context where a truth value is
expected, or when operators are nested whose precedence
people often find confusing.
-Wreturn-type Warn whenever a function is defined with a return-type that
defaults to int. Also warn about any return statement with no
return-value in a function whose return-type is not void.
TABLE 5-8: WARNING/ERROR OPTIONS IMPLIED BY -WALL (CONTINUED)
Option Definition

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh