mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
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>
This commit is contained in:
committed by
GitHub
parent
284c4e3e31
commit
2473f57ba7
2
.github/scripts/windows/build_task.bat
vendored
2
.github/scripts/windows/build_task.bat
vendored
@@ -31,7 +31,7 @@ if %errorlevel% neq 0 exit /b 3
|
|||||||
if "%THREAD_SAFE%" equ "0" set ADD_CONF=%ADD_CONF% --disable-zts
|
if "%THREAD_SAFE%" equ "0" set ADD_CONF=%ADD_CONF% --disable-zts
|
||||||
if "%INTRINSICS%" neq "" set ADD_CONF=%ADD_CONF% --enable-native-intrinsics=%INTRINSICS%
|
if "%INTRINSICS%" neq "" set ADD_CONF=%ADD_CONF% --enable-native-intrinsics=%INTRINSICS%
|
||||||
|
|
||||||
set CFLAGS=/W1 /WX
|
set CFLAGS=/W1 /WX /w14013
|
||||||
|
|
||||||
cmd /c configure.bat ^
|
cmd /c configure.bat ^
|
||||||
--enable-snapshot-build ^
|
--enable-snapshot-build ^
|
||||||
|
|||||||
Reference in New Issue
Block a user