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/gcc.lua | |
| parent | a9e9084863ffc3d9e6aeb044e3f92a7deaa78036 (diff) | |
add pedantic warning #4209
Diffstat (limited to 'xmake/modules/core/tools/gcc.lua')
| -rw-r--r-- | xmake/modules/core/tools/gcc.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua index 263f96c7b..828380c15 100644 --- a/xmake/modules/core/tools/gcc.lua +++ b/xmake/modules/core/tools/gcc.lua @@ -128,6 +128,8 @@ function nf_warning(self, level) , more = "-Wall" , all = "-Wall" , allextra = {"-Wall", "-Wextra"} + , extra = "-Wextra" + , pedantic = "-Wpedantic" , everything = self:kind() == "cxx" and {"-Wall", "-Wextra", "-Weffc++"} or {"-Wall", "-Wextra"} , error = "-Werror" } |
