From 3b0024764afaa0391b903059a0215c638cb03e85 Mon Sep 17 00:00:00 2001 From: Jérôme Leclercq Date: Thu, 28 Oct 2021 12:58:16 +0200 Subject: MSVC: Add flag conversion for Wswitch and Wswitch-enum --- xmake/modules/core/tools/cl.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua index 9e9f38ab8..acf99529f 100644 --- a/xmake/modules/core/tools/cl.lua +++ b/xmake/modules/core/tools/cl.lua @@ -62,6 +62,8 @@ function init(self) , ["-W2"] = "-W2" , ["-W3"] = "-W3" , ["-Werror"] = "-WX" + , ["-Wswitch"] = "-we4062" + , ["-Wswitch-enum"] = "-we4061" , ["%-Wno%-error=.*"] = "" , ["%-fno%-.*"] = "" -- cgit v1.3.1