diff options
| author | ruki <[email protected]> | 2023-09-17 21:41:32 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-09-17 21:41:39 +0800 |
| commit | 97831c56d2ba3a719de0c80d9bcdc8db9163eb00 (patch) | |
| tree | aedaa7962d1c52bab5c916624bf89e7cf0b6e56c /xmake/modules/core/tools/clang.lua | |
| parent | a9e9084863ffc3d9e6aeb044e3f92a7deaa78036 (diff) | |
add pedantic warning #4209
Diffstat (limited to 'xmake/modules/core/tools/clang.lua')
| -rw-r--r-- | xmake/modules/core/tools/clang.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xmake/modules/core/tools/clang.lua b/xmake/modules/core/tools/clang.lua index 915ee1cb9..28a00d84f 100644 --- a/xmake/modules/core/tools/clang.lua +++ b/xmake/modules/core/tools/clang.lua @@ -117,13 +117,14 @@ end -- make the warning flag function nf_warning(self, level) - local maps = - { + local maps = { none = "-w" , less = "-Wall" , more = "-Wall" , all = "-Wall" - , allextra = "-Wall -Wextra" + , allextra = {"-Wall", "-Wextra"} + , extra = "-Wextra" + , pedantic = "-Wpedantic" , everything = "-Weverything" , error = "-Werror" } |
