summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérôme Leclercq <[email protected]>2020-11-10 14:49:29 +0100
committerJérôme Leclercq <[email protected]>2020-11-10 14:49:29 +0100
commit979df33ee2e84c77242fe1c07cef3d9a1a3def90 (patch)
tree75160b3407b691ec5baed61fd04a53ffe3a4694a
parent292971507ffb3e6667616dddd7a0a79e8c5e7c8f (diff)
Revert "GCC/Clang: Add -Wextra when enabling all warnings"
This reverts commit 35f2bce6d454934554f9e97adfa96270e776d56e.
-rw-r--r--xmake/modules/core/tools/clang.lua2
-rw-r--r--xmake/modules/core/tools/cparser.lua2
-rw-r--r--xmake/modules/core/tools/gcc.lua2
-rw-r--r--xmake/modules/core/tools/nvcc.lua2
-rw-r--r--xmake/plugins/project/cmake/cmakelists.lua2
5 files changed, 5 insertions, 5 deletions
diff --git a/xmake/modules/core/tools/clang.lua b/xmake/modules/core/tools/clang.lua
index 8b3bc66ab..549bdaae1 100644
--- a/xmake/modules/core/tools/clang.lua
+++ b/xmake/modules/core/tools/clang.lua
@@ -117,7 +117,7 @@ function nf_warning(self, level)
none = "-w"
, less = "-Wall"
, more = "-Wall"
- , all = "-Wextra -Wall"
+ , all = "-Wall"
, everything = "-Weverything"
, error = "-Werror"
}
diff --git a/xmake/modules/core/tools/cparser.lua b/xmake/modules/core/tools/cparser.lua
index 884581fc1..d8603da30 100644
--- a/xmake/modules/core/tools/cparser.lua
+++ b/xmake/modules/core/tools/cparser.lua
@@ -94,7 +94,7 @@ function nf_warning(self, level)
none = "-w"
, less = "-Wall"
, more = "-Wall"
- , all = "-Wextra -Wall"
+ , all = "-Wall"
, everything = "-Wextra -Wall"
, error = "-Werror"
}
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua
index aca811b48..5418ecf27 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -111,7 +111,7 @@ function nf_warning(self, level)
none = "-w"
, less = "-Wall"
, more = "-Wall"
- , all = "-Wall -Wextra"
+ , all = "-Wall"
, everything = "-Wall -Wextra -Weffc++"
, error = "-Werror"
}
diff --git a/xmake/modules/core/tools/nvcc.lua b/xmake/modules/core/tools/nvcc.lua
index 133b029fa..d5a7ef6d2 100644
--- a/xmake/modules/core/tools/nvcc.lua
+++ b/xmake/modules/core/tools/nvcc.lua
@@ -122,7 +122,7 @@ function nf_warning(self, level)
none = "-w"
, less = "-Wall"
, more = "-Wall"
- , all = "-Wall -Wextra"
+ , all = "-Wall"
, everything = "-Weverything -Wall -Wextra -Weffc++"
, error = "-Werror"
}
diff --git a/xmake/plugins/project/cmake/cmakelists.lua b/xmake/plugins/project/cmake/cmakelists.lua
index 1ede8b10f..fe8a66871 100644
--- a/xmake/plugins/project/cmake/cmakelists.lua
+++ b/xmake/plugins/project/cmake/cmakelists.lua
@@ -277,7 +277,7 @@ function _add_target_warnings(cmakelists, target)
none = "-w"
, less = "-Wall"
, more = "-Wall"
- , all = "-Wall -Wextra"
+ , all = "-Wall"
, error = "-Werror"
}
local flags_msvc =