aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <waruqi@gmail.com>2019-05-21 18:06:31 +0800
committerGitHub <noreply@github.com>2019-05-21 18:06:31 +0800
commit6c6b64eedc15d603679e658376890cf8b29ec562 (patch)
tree9c9771f1fddcf1fb54c6910c086e522d1dcf055a
parentced9fbfb71fcffc8d9286b20dbd0b921ff09d41c (diff)
parent46611edf6b1870c50618151e333a3b0b09dd43fe (diff)
downloadxmake-docs-6c6b64eedc15d603679e658376890cf8b29ec562.tar.gz
xmake-docs-6c6b64eedc15d603679e658376890cf8b29ec562.zip
Merge pull request #3 from OpportunityLiu/patch-1
Update manual.md
-rw-r--r--manual.md2
-rw-r--r--zh/manual.md2
2 files changed, 4 insertions, 0 deletions
diff --git a/manual.md b/manual.md
index c8c10b72..577d1656 100644
--- a/manual.md
+++ b/manual.md
@@ -1181,6 +1181,8 @@ Set the warning level of the compilation of the current target, generally suppor
| less | Enable fewer warnings | -W1 | -W1 |
| more | Enable more warnings | -W3 | -W3 |
| all | Enable all warnings | -Wall | -W3 (-Wall too more warnings) |
+| extra | Enable extra warnings | -Wextra | -W4 |
+| everything | Enable all supported warnings | -Wall -Wextra -Weffc++ / -Weverything | -Wall |
| error | Use all warnings as compilation errors | -Werror | -WX |
The parameters of this api can be added in combination, for example:
diff --git a/zh/manual.md b/zh/manual.md
index a1005fae..ca9e957d 100644
--- a/zh/manual.md
+++ b/zh/manual.md
@@ -1206,6 +1206,8 @@ target("xxx")
| less | 启用较少的警告 | -W1 | -W1 |
| more | 启用较多的警告 | -W3 | -W3 |
| all | 启用所有警告 | -Wall | -W3 (-Wall too more warnings) |
+| extra | 启用额外的警告 | -Wextra | -W4 |
+| everything | 启用全部支持的警告 | -Wall -Wextra -Weffc++ / -Weverything | -Wall |
| error | 将所有警告作为编译错误 | -Werror | -WX |
这个api的参数是可以混合添加的,例如: