File 0551-erts-Fix-Werror-to-be-passed-to-cl.exe.patch of Package erlang

From aed358160d6ebc108def2f5caa1568c881ab2527 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lukas=20Backstr=C3=B6m?= <lukas@erlang.org>
Date: Mon, 16 Dec 2024 12:44:32 +0100
Subject: [PATCH] erts: Fix -Werror to be passed to cl.exe

---
 erts/etc/win32/wsl_tools/vc/cc.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/erts/etc/win32/wsl_tools/vc/cc.sh b/erts/etc/win32/wsl_tools/vc/cc.sh
index dd92431289..493c6b6403 100755
--- a/erts/etc/win32/wsl_tools/vc/cc.sh
+++ b/erts/etc/win32/wsl_tools/vc/cc.sh
@@ -98,6 +98,8 @@ while test -n "$1" ; do
     case "$x" in
 	-Wall)
 	    ;;
+        -Werror)
+	    CMD="$CMD /WX";;
 	-c)
 	    LINKING=false;;
 	    #CMD="$CMD -c";;
-- 
2.43.0

openSUSE Build Service is sponsored by