[英]gcc -W warning flags
I'm learning C and in some examples I found "use gcc -W to enable warnings", 我正在学习C,在某些例子中,我发现“使用gcc -W来启用警告”,
but reading the documentation here : http://gcc.gnu.org/onlinedocs/gcc-4.6.3/gcc/Warning-Options.html 但请阅读此处的文档: http : //gcc.gnu.org/onlinedocs/gcc-4.6.3/gcc/Warning-Options.html
I can't find what -W do. 我找不到-W做什么。
Can someone explain ? 谁能解释一下?
I'm speaking about W and not w. 我说的是W而不是w。
Regards, 问候,
-W
is now deprecated by -Wextra
with new gcc
versions. -Wextra
现在已弃用-W
并使用新的gcc
版本。
From gcc
man page: 来自
gcc
手册页:
-Wextra
This enables some extra warning flags that are not enabled by -Wall.
(This option used to be called -W. The older name is still supported, but
the newer name is more descriptive.)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.