summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/cl.lua
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-05-20 19:01:11 +0800
committerOpportunityLiu <[email protected]>2019-05-21 09:49:08 +0800
commitfc17d122cbfadf4af3aac274e4481c3ecf72e816 (patch)
tree6aaf492ee7218c255c941fe3a9ae4b069fead1df /xmake/modules/core/tools/cl.lua
parent7ed7da5e9b333930081b50ff3781ea0a07417a1b (diff)
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