返回介绍

A.2 Warning options

发布于 2023-07-03 22:07:03 字数 4810 浏览 0 评论 0 收藏 0

-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 within OR

-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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文