Skip to content

Commit

Permalink
技巧:打开警告信息
Browse files Browse the repository at this point in the history
  • Loading branch information
xingmingjie committed Jul 3, 2014
1 parent 5fd242f commit 85f5a20
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@
# 其它
* [只做语法检查](syntax-only.md)
* [保存临时文件](save-temps.md)
* [打开警告信息](turn-on-warnings.md)

14 changes: 14 additions & 0 deletions src/turn-on-warnings.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# 打开警告信息

## 技巧

你的程序编译通过了,但并不意味着已经万事大吉,也许还存在一些不规范的地方,或者一些错误隐患。建议,使用`-Wall`选项打开所有的警告信息,把所有的警告都处理掉。

$ gcc -Wall ...

详情参见[gcc手册](https://gcc.gnu.org/onlinedocs/gcc/Preprocessor-Options.html#Preprocessor-Options)

## 贡献者

xmj

0 comments on commit 85f5a20

Please sign in to comment.