diff options
| author | ruki <[email protected]> | 2019-05-21 10:25:44 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-05-21 10:25:44 +0800 |
| commit | e0dd88cfd0f55f656fe865da208bc629bf78faa5 (patch) | |
| tree | 3638e595e9acb54c09deb776975ca72f3de202f2 /xmake/modules/core/tools/cparser.lua | |
| parent | 7ed7da5e9b333930081b50ff3781ea0a07417a1b (diff) | |
| parent | c9208456c2d0c8175d19290a50ccb6fdf95139bb (diff) | |
Merge pull request #420 from OpportunityLiu/more-warnings
support more warnings
Diffstat (limited to 'xmake/modules/core/tools/cparser.lua')
| -rw-r--r-- | xmake/modules/core/tools/cparser.lua | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/xmake/modules/core/tools/cparser.lua b/xmake/modules/core/tools/cparser.lua index 967714c37..6e2541c32 100644 --- a/xmake/modules/core/tools/cparser.lua +++ b/xmake/modules/core/tools/cparser.lua @@ -46,9 +46,11 @@ function init(self) self:set("mapflags", { -- warnings - ["-W1"] = "-Wall" - , ["-W2"] = "-Wall" - , ["-W3"] = "-Wall" + ["-W1"] = "-Wall" + , ["-W2"] = "-Wall" + , ["-W3"] = "-Wall" + , ["-W4"] = "-Wall -Wextra" + , ["-Weverything"] = "-Wall -Wextra" -- strip , ["-s"] = "-s" @@ -95,12 +97,14 @@ function nf_warning(self, level) -- the maps local maps = - { - none = "-w" - , less = "-W1" - , more = "-W3" - , all = "-Wall" - , error = "-Werror" + { + none = "-w" + , less = "-Wall" + , more = "-Wall" + , all = "-Wall" + , extra = "-Wextra" + , everything = "-Wextra -Wall" + , error = "-Werror" } -- make it |
