我正在学习 C,在一些示例中我发现“使用 gcc -W 启用警告”,
但在这里阅读文档:http://gcc.gnu.org/onlinedocs/gcc-4.6.3/gcc/Warning-Options.html
我找不到 -W 做什么。
谁能解释一下?
我说的是 W 而不是 w。
问候,
最佳答案
-W
现在被 -Wextra
弃用了新的 gcc
版本。
来自 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.)
关于c - gcc -W 警告标志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12061809/