Skip to content

Commit 2473f57

Browse files
authored
Elevate C4013 to level 1 in CI (GH-16986)
C4013 warns about undefined functions[1], but for some reason it's only a level 3 warning, and such suppressed by default (usually there will be link errors afterwards, though). It appears to be sensible to elevate the warning to level 1, so it will be converted to a compile error. [1] <https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-3-c4013>
1 parent 284c4e3 commit 2473f57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/scripts/windows/build_task.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if %errorlevel% neq 0 exit /b 3
3131
if "%THREAD_SAFE%" equ "0" set ADD_CONF=%ADD_CONF% --disable-zts
3232
if "%INTRINSICS%" neq "" set ADD_CONF=%ADD_CONF% --enable-native-intrinsics=%INTRINSICS%
3333

34-
set CFLAGS=/W1 /WX
34+
set CFLAGS=/W1 /WX /w14013
3535

3636
cmd /c configure.bat ^
3737
--enable-snapshot-build ^

0 commit comments

Comments
 (0)