summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérôme Leclercq <[email protected]>2020-11-10 14:49:27 +0100
committerJérôme Leclercq <[email protected]>2020-11-10 14:49:27 +0100
commit292971507ffb3e6667616dddd7a0a79e8c5e7c8f (patch)
treec78b5b75dbbebbbac3088080d4deb7acfedd95f8
parent35f2bce6d454934554f9e97adfa96270e776d56e (diff)
Revert "MSVC: Use /W4 when enabling all warnings"
This reverts commit cf3cd2f2d25376d29e20e87bfd9f4aed31af5568.
-rw-r--r--xmake/modules/core/tools/cl.lua2
-rw-r--r--xmake/modules/core/tools/nvcc.lua2
-rw-r--r--xmake/plugins/project/cmake/cmakelists.lua2
3 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua
index e22554713..1144023c5 100644
--- a/xmake/modules/core/tools/cl.lua
+++ b/xmake/modules/core/tools/cl.lua
@@ -136,7 +136,7 @@ function nf_warning(self, level)
none = "-W0"
, less = "-W1"
, more = "-W3"
- , all = "-W4" -- = "-Wall" will enable too more warnings
+ , all = "-W3" -- = "-Wall" will enable too more warnings
, everything = "-Wall"
, error = "-WX"
}
diff --git a/xmake/modules/core/tools/nvcc.lua b/xmake/modules/core/tools/nvcc.lua
index 4ad35522b..133b029fa 100644
--- a/xmake/modules/core/tools/nvcc.lua
+++ b/xmake/modules/core/tools/nvcc.lua
@@ -107,7 +107,7 @@ function nf_warning(self, level)
none = "-W0"
, less = "-W1"
, more = "-W3"
- , all = "-W4" -- = "-Wall" will enable too more warnings
+ , all = "-W3" -- = "-Wall" will enable too more warnings
, everything = "-Wall"
, error = "-WX"
}
diff --git a/xmake/plugins/project/cmake/cmakelists.lua b/xmake/plugins/project/cmake/cmakelists.lua
index b894b508b..1ede8b10f 100644
--- a/xmake/plugins/project/cmake/cmakelists.lua
+++ b/xmake/plugins/project/cmake/cmakelists.lua
@@ -285,7 +285,7 @@ function _add_target_warnings(cmakelists, target)
none = "-W0"
, less = "-W1"
, more = "-W3"
- , all = "-W4" -- = "-Wall" will enable too more warnings
+ , all = "-W3" -- = "-Wall" will enable too more warnings
, error = "-WX"
}
local warnings = target:get("warnings")