Skip to content

Commit c59eb65

Browse files
committed
don't error on warnings with clang
1 parent e8047b6 commit c59eb65

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/scripts/windows/build_task.bat

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

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

0 commit comments

Comments
 (0)