diff options
| author | ruki <[email protected]> | 2020-11-14 11:11:25 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-11-14 11:11:25 +0800 |
| commit | 5465f5e95f2d308286950b2ed2536ba6925ed62e (patch) | |
| tree | e01a353f458b8fe88aaa40c205b84e5e54eb39fa | |
| parent | f319e8d4c69513dbbf07e6737b4ba03c2cb88524 (diff) | |
| parent | cb310f3595525dd90bcb41d608c7a02e5f00e242 (diff) | |
Merge pull request #1034 from jonathanpoelen/w4
-W4 implies -Wall and -Wextra with gcc and clang
| -rw-r--r-- | xmake/modules/core/tools/clang.lua | 2 | ||||
| -rw-r--r-- | xmake/modules/core/tools/gcc.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/clang.lua b/xmake/modules/core/tools/clang.lua index 457de3b60..27d98933c 100644 --- a/xmake/modules/core/tools/clang.lua +++ b/xmake/modules/core/tools/clang.lua @@ -52,7 +52,7 @@ function init(self) ["-W1"] = "-Wall" , ["-W2"] = "-Wall" , ["-W3"] = "-Wall" - , ["-W4"] = "-Wextra" + , ["-W4"] = "-Wall -Wextra" -- strip , ["-s"] = "-s" diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua index 130790a56..9df42a56b 100644 --- a/xmake/modules/core/tools/gcc.lua +++ b/xmake/modules/core/tools/gcc.lua @@ -53,7 +53,7 @@ function init(self) ["-W1"] = "-Wall" , ["-W2"] = "-Wall" , ["-W3"] = "-Wall" - , ["-W4"] = "-Wextra" + , ["-W4"] = "-Wall -Wextra" , ["-Weverything"] = "-Wall -Wextra -Weffc++" -- strip |
