-Wlarger-than= 当目标文件大于 N 字节时给出警告 -Wline-truncation 对被截断的源文件行给出警告 -Wlogical-op 当逻辑操作结果似乎总为真或假时给出警告 -Wlong-long 当使用 -pedantic 时不对“long long”给出警告 -Wmain 对可疑的“main”声明给出警告 -Wmissing-braces 若初始值设定项中可能缺少花括号...
我同意前面的答案,即启用所有警告可能没有好处,但是 GCC 确实提供了一种相当方便的方法来实现这一点。命令 gcc -Q --help=warning 提供所有受支持的警告选项的列表以及有关它们是否处于活动状态的信息。顺便说一句,这可以用来找出哪些选项被(不)启用,例如 -Wall 和-Wextra gcc -Wall -Wextra -Q --help=warni...
$(call MOD_ADD_C,chan_misdn,misdn_config.c misdn/isdn_lib.c misdn/isdn_msg_parser.c) chan_mgcp.o: _ASTCFLAGS+=-Wno-format-truncation chan_misdn.o: _ASTCFLAGS+=-Imisdn misdn_config.o: _ASTCFLAGS+=-Imisdn misdn/isdn_lib.o: _ASTCFLAGS+=-Wno-strict-aliasing2...
gcc -Q --help=warning | sed -e 's/^\s*\(\-\S*\)\s*\[\w*\]/\1 /gp;d' | tr ...
Solutions By company size Enterprises Small and medium teams Startups Nonprofits By use case DevSecOps DevOps CI/CD View all use cases By industry Healthcare Financial services Manufacturing Government View all industries View all solutions Resources Topics AI DevOps Security Software...
-Wline-truncation 对被截断的源文件行给出警告 -Wlogical-op 当逻辑操作结果似乎总为真或假时给出警告 -Wlong-long 当使用 -pedantic 时不对“long long”给出警告 -Wmain 对可疑的“main”声明给出警告 -Wmissing-braces 若初始值设定项中可能缺少花括号则给出警告 ...
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {...
*/ if (GET_CODE (new) == CLOBBER && XEXP (new, 0) == const0_rtx) return new; SUBST (SET_DEST (XVECEXP (x, 0, i)), new); } } } else { len = GET_RTX_LENGTH (code); fmt = GET_RTX_FORMAT (code); /* We don't need to process a SET_DEST that is a register, ...