aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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的参数是可以混合添加的,例如: