diff options
| author | Jérôme Leclercq <[email protected]> | 2020-11-10 14:58:01 +0100 |
|---|---|---|
| committer | Jérôme Leclercq <[email protected]> | 2020-11-10 14:58:01 +0100 |
| commit | f1b890bc1717904c4e11d9cff41191e97b7ef612 (patch) | |
| tree | 52c95feccd6f04155da9c3f93de3a6c3371aee3b /xmake/plugins | |
| parent | 979df33ee2e84c77242fe1c07cef3d9a1a3def90 (diff) | |
Add support for "extra" warning level
Diffstat (limited to 'xmake/plugins')
| -rw-r--r-- | xmake/plugins/project/cmake/cmakelists.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/plugins/project/cmake/cmakelists.lua b/xmake/plugins/project/cmake/cmakelists.lua index fe8a66871..cfdab0e01 100644 --- a/xmake/plugins/project/cmake/cmakelists.lua +++ b/xmake/plugins/project/cmake/cmakelists.lua @@ -279,6 +279,7 @@ function _add_target_warnings(cmakelists, target) , more = "-Wall" , all = "-Wall" , error = "-Werror" + , extra = "-Wextra" } local flags_msvc = { @@ -287,6 +288,7 @@ function _add_target_warnings(cmakelists, target) , more = "-W3" , all = "-W3" -- = "-Wall" will enable too more warnings , error = "-WX" + , extra = "-W4" } local warnings = target:get("warnings") if warnings then |
