From cf3cd2f2d25376d29e20e87bfd9f4aed31af5568 Mon Sep 17 00:00:00 2001 From: Jérôme Leclercq Date: Tue, 10 Nov 2020 13:46:54 +0100 Subject: MSVC: Use /W4 when enabling all warnings --- xmake/modules/core/tools/cl.lua | 2 +- xmake/modules/core/tools/nvcc.lua | 2 +- xmake/plugins/project/cmake/cmakelists.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua index 1144023c5..e22554713 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 = "-W3" -- = "-Wall" will enable too more warnings + , all = "-W4" -- = "-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 d5a7ef6d2..b2284ad05 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 = "-W3" -- = "-Wall" will enable too more warnings + , all = "-W4" -- = "-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 fe8a66871..08542206c 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 = "-W3" -- = "-Wall" will enable too more warnings + , all = "-W4" -- = "-Wall" will enable too more warnings , error = "-WX" } local warnings = target:get("warnings") -- cgit v1.3.1