Skip to content

Commit e4d812c

Browse files
committed
don't error on warnings with clang
1 parent e8e52d4 commit e4d812c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/scripts/windows/build_task.bat

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ rem C4018: comparison: signed/unsigned mismatch
3232
rem C4146: unary minus operator applied to unsigned type
3333
rem C4244: type conversion, possible loss of data
3434
rem C4267: 'size_t' type conversion, possible loss of data
35-
set CFLAGS=/W3 /WX /wd4018 /wd4146 /wd4244 /wd4267
35+
if "%CLANG_TOOLSET%" equ "1" (
36+
set CFLAGS=/W3 /wd4018 /wd4146 /wd4244 /wd4267
37+
) else (
38+
set CFLAGS=/W3 /WX /wd4018 /wd4146 /wd4244 /wd4267
39+
)
3640

3741
cmd /c configure.bat ^
3842
--enable-snapshot-build ^

0 commit comments

Comments
 (0)