]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
checksrc.bat: remove explicit SNPRINTF bypass
authorJay Satiro <raysatiro@yahoo.com>
Fri, 17 Jan 2025 08:17:15 +0000 (03:17 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Sun, 19 Jan 2025 08:24:31 +0000 (03:24 -0500)
- 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

projects/checksrc.bat

index 69e3d8c4f1846ba222bc901ef717251ae08bd004..cbabad6a481e218af455757294ad1b45127a6adc 100644 (file)
@@ -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"
     )
   )