- 1 Getting started
- 2 Compile
- 3 Customize
- 4 Optimize
- 5 Debug
- 6 Non-standard extensions
- 7 System Routines
- 附录 A
- 附录 B
- 附录 E
- 附录 I
A.2 Warning options
- -Wall
enable most warnings (all except as noted below)
- -Wextra
like -Wall but enable some extra warning flags
- -w
disable all warnings
- -Wno-warning
disable warning enabled by default, -Wall or -Wextra
- -Wadditional
additional warnings only raised with -Wall
- -Wno-unfinished
do not warn if unfinished features are used; always active
- -Wno-pending
do not warn if pending features are used; always active
- -Wno-repository-checks
do not warn/check for program/function/external signature mismatch; always active
- -Wno-ignored-error
do not warn about errors in code parts which are unreachable and so normally ignored; always active
- -Wobsolete
warn if obsolete features are used
- -Warchaic
warn if archaic features are used
- -Wredefinition
warn about non-referenced ambiguous data items
- -Wtruncate
warn about field truncation from constant assignments
- -Wpossible-truncate
warn about possible field truncation; not set with -Wall
- -Woverlap
warn about overlapping
MOVE
of items- -Wpossible-overlap
warn about
MOVE
of items that may overlap depending on variables; not set with -Wall- -Wparentheses
warn if parentheses are omitted around
AND
withinOR
- -Wstrict-typing
warn strictly about type mismatch
- -Wimplicit-define
warn whenever data items are implicitly defined; not set with -Wall
- -Wno-corresponding
do not warn about
CORRESPONDING
with no matching items; always active- -Winitial-value
warn if initial
VALUE
clause is ignored- -Wprototypes
warn about missing
FUNCTION
prototypes/definitions- -Warithmetic-osvs
warn if arithmetic expression precision has changed
- -Wcall-params
warn about non 01/77 items for
CALL
parameters; not set with -Wall- -Wconstant-expression
warn about expressions that always resolve to true/false
- -Wconstant-numlit-expression
warn about numeric expressions that always resolve to true/false
- -
Wlarger-01
-redefines warn about larger redefines allowed by COBOL standards
- -Wcolumn-overflow
warn about text after program-text area,
FIXED
format; not set with -Wall- -Wterminator
warn about lack of scope terminator
END
-XXX
; not set with -Wall- -Wlinkage
warn about dangling
LINKAGE
items; not set with -Wall- -Wunreachable
warn about likely unreachable statements; not set with -Wall
- -Wno-dialect
do not warn about dialect specific issues; always active
- -Wdangling-text
warn about source text after program-area; not set with -Wall
- -Wno-missing-newline
do not warn about missing newlines; always active
- -Wno-others
do not warn about different issues; always active
- -Wno-unsupported
do not warn if runtime does not support a feature used
- -Werror
treat all warnings as errors
- -Wno-error
don’t treat warnings as errors
- -Werror=warning
treat specified warning as error
- -Wno-error=warning
don’t treat specified warning as error
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论