6-6
EPSOn
S5U1C17001C ManUal
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
6 C COMPilEr
example, when a multidimensional array is initialized, a warning is output if parentheses are not
used correctly for each dimension.
Example:
long l_Array_1[3][3] = { 0, 1, 2, 3, 4, 5, 6, 7, 8 };
(Warning is output.)
long l _ Array _ 2[3][3] = { { 0, 1, 2 }, { 3, 4, 5 }, { 6, 7, 8 } };
(No warning is output.)
-Wparentheses
Outputs a warning when omission of parentheses results in ambiguities in the description. For
example, a warning is output if “{ }” are omitted from a nested if statement.
-Wsequence-point
Outputs a warning in the case of the standard C language specification if a code described might
result in undefined behavior due to the absence of an accurate execution sequence indication.
Example:
i_Array[i_Val++] = i_Val;
-Wreturn-type
Outputs a warning when the return value format is defined as the default “int” format since it is
not specified when the function was defined. Also outputs a warning when no value is returned
when the return value is a function other than the void type.
-Wswitch
Outputs a warning when case statements do not exist for all enum values when the
switch
statement uses a variable of the enum type for the index. (If a default label exists, this warning is
not output.) Also outputs a warning when a case statement specifies a value outside the range of
enum type.
-Wunused-function
Outputs a warning when a static function is declared but not defined. Also outputs a warning when
a static function that is not inline is defined but not used.
-Wunused-label
Outputs a warning when a label is declared but not used.
-Wunused-variable
Outputs a warning when a static variable other than local variable or const is declared but not
used.
-Wunused-value
Outputs a warning when a calculation is performed even though the calculation result clearly will
not be used.
-Wunused
Same as all “-Wunused-xxxx” above in the enabled state.
-Wuninitialized
Outputs a warning when a local variable is used without initialization. This warning is not output
when
-O0
is selected.
Default:
The above warning options are disabled.
-mno-sjis-filt
Function: Disables the filter function for the Shift JIS code.
Description: This option disables the filter function for the Shift JIS code.
For detailed information on this filter function, refer to Section 6.5, “Filter Function for Shift JIS
Code.”
Default:
The preprocessor performs filtering for Shift JIS code.
Summary of Contents for S5U1C17001C
Page 6: ......
Page 17: ...1 General S5U1C17001C Manual 1 General ...
Page 18: ......
Page 21: ...1 2 Install S5U1C17001C Manual 2 Installation ...
Page 22: ......
Page 29: ...3 SoftDev S5U1C17001C Manual 3 Software Development Procedures ...
Page 30: ......
Page 103: ...4 SrcFiles S5U1C17001C Manual 4 Source files ...
Page 104: ......
Page 121: ...5 IDE S5U1C17001C Manual 5 gnU17 iDE ...
Page 122: ......
Page 365: ...6 Compiler S5U1C17001C Manual 6 C Compiler ...
Page 366: ......
Page 385: ...7 Library S5U1C17001C Manual 7 library ...
Page 386: ......
Page 405: ...8 Assemblr S5U1C17001C Manual 8 assembler ...
Page 406: ......
Page 439: ...9 Linker S5U1C17001C Manual 9 linker ...
Page 440: ......
Page 449: ...10 Debugger S5U1C17001C Manual 10 Debugger ...
Page 450: ......
Page 626: ...11 Tools S5U1C17001C Manual 11 Other Tools ...
Page 627: ......
Page 696: ...S1C17 Family C Compiler Package Quick Reference Reference ...