Техническая Спецификация для Microchip Technology SW006022-2N
![Microchip Technology](https://files.manualsbrain.com/attachments/cf42c3c895ef469f06d2e47e97fd98d738fcf5cf/common/fit/150/50/7340124dc8aa983aaf764094e2f06faab86f306c03111c5817f7e4e53fb2/brand_logo.gif)
Compiler Command-Line Driver
2012 Microchip Technology Inc.
DS52071B-page 65
-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.
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 };
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
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.
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.
defaults to int. Also warn about any return statement with no
return-value in a function whose return-type is not void.
TABLE 3-8:
WARNING/ERROR OPTIONS IMPLIED BY -WALL (CONTINUED)
Option
Definition