summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/gcc.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/gcc.lua
parent7ed7da5e9b333930081b50ff3781ea0a07417a1b (diff)
support more warnings
Diffstat (limited to 'xmake/modules/core/tools/gcc.lua')
-rw-r--r--xmake/modules/core/tools/gcc.lua13
1 files changed, 8 insertions, 5 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua
index 9253bf75c..f31f4f876 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -52,6 +52,7 @@ function init(self)
["-W1"] = "-Wall"
, ["-W2"] = "-Wall"
, ["-W3"] = "-Wall"
+ , ["-Weverything"] = "-Wall -Wextra -Weffc++"
-- strip
, ["-s"] = "-s"
@@ -115,11 +116,13 @@ function nf_warning(self, level)
-- the maps
local maps =
{
- none = "-w"
- , less = "-Wall"
- , more = "-Wall"
- , all = "-Wall"
- , error = "-Werror"
+ none = "-w"
+ , less = "-Wall"
+ , more = "-Wall"
+ , all = "-Wall"
+ , extra = "-Wextra"
+ , everything = "-Wall -Wextra -Weffc++"
+ , error = "-Werror"
}
-- make it