summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/cl.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-05-21 10:25:44 +0800
committerGitHub <[email protected]>2019-05-21 10:25:44 +0800
commite0dd88cfd0f55f656fe865da208bc629bf78faa5 (patch)
tree3638e595e9acb54c09deb776975ca72f3de202f2 /xmake/modules/core/tools/cl.lua
parent7ed7da5e9b333930081b50ff3781ea0a07417a1b (diff)
parentc9208456c2d0c8175d19290a50ccb6fdf95139bb (diff)
Merge pull request #420 from OpportunityLiu/more-warnings
support more warnings
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
-rw-r--r--xmake/modules/core/tools/cl.lua14
1 files changed, 9 insertions, 5 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua
index fac42e377..3c8699c7e 100644
--- a/xmake/modules/core/tools/cl.lua
+++ b/xmake/modules/core/tools/cl.lua
@@ -43,6 +43,8 @@ function init(self)
, ["-fvisibility=.*"] = ""
-- warnings
+ , ["-Weverything"] = "-Wall"
+ , ["-Wextra"] = "-W4"
, ["-Wall"] = "-W3" -- = "-Wall" will enable too more warnings
, ["-W1"] = "-W1"
, ["-W2"] = "-W2"
@@ -119,11 +121,13 @@ function nf_warning(self, level)
-- the maps
local maps =
{
- none = "-W0"
- , less = "-W1"
- , more = "-W3"
- , all = "-W3" -- = "-Wall" will enable too more warnings
- , error = "-WX"
+ none = "-W0"
+ , less = "-W1"
+ , more = "-W3"
+ , all = "-W3" -- = "-Wall" will enable too more warnings
+ , extra = "-W4"
+ , everything = "-Wall"
+ , error = "-WX"
}
-- make it