From: Jay Satiro Date: Fri, 17 Jan 2025 08:17:15 +0000 (-0500) Subject: checksrc.bat: remove explicit SNPRINTF bypass X-Git-Tag: curl-8_12_0~87 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=56998277f0571d1b01939e6097068835db09f765;p=thirdparty%2Fcurl.git checksrc.bat: remove explicit SNPRINTF bypass - Remove the command line argument passed to checksrc.pl that accepts SNPRINTF violations in docs/examples. This is a follow-up to c445b742 which introduced a different management of banned functions and removed the SNPRINTF rule in favor of banning snprintf in lib. There's no longer a SNPRINTF warning to suppress. Closes https://github.com/curl/curl/pull/16032 --- diff --git a/projects/checksrc.bat b/projects/checksrc.bat index 69e3d8c4f1..cbabad6a48 100644 --- a/projects/checksrc.bat +++ b/projects/checksrc.bat @@ -175,7 +175,7 @@ rem *************************************************************************** if "%CHECK_EXAMPLES%" == "TRUE" ( rem Check the docs\examples directory if exist %SRC_DIR%\docs\examples ( - for /f "delims=" %%i in ('dir "%SRC_DIR%\docs\examples\*.c.*" /b 2^>NUL') do @perl "%SRC_DIR%\scripts\checksrc.pl" "-D%SRC_DIR%\docs\examples" -ASNPRINTF "%%i" + for /f "delims=" %%i in ('dir "%SRC_DIR%\docs\examples\*.c.*" /b 2^>NUL') do @perl "%SRC_DIR%\scripts\checksrc.pl" "-D%SRC_DIR%\docs\examples" "%%i" ) )