]> granicus.if.org Git - curl/commitdiff
checksrc.bat: Ignore snprintf warnings in docs/examples
authorJay Satiro <raysatiro@yahoo.com>
Fri, 10 May 2019 19:28:15 +0000 (15:28 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Sat, 11 May 2019 06:32:49 +0000 (02:32 -0400)
.. because we allow snprintf use in docs/examples.

Closes https://github.com/curl/curl/pull/3862

projects/checksrc.bat

index 5c8debf11a899272e49b91443b8e57e1aa62de8b..54c976ad18fca0063306047eb32354ef5f5b8f3c 100644 (file)
@@ -143,7 +143,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%\lib\checksrc.pl" "-D%SRC_DIR%\docs\examples" "%%i"
+      for /f "delims=" %%i in ('dir "%SRC_DIR%\docs\examples\*.c.*" /b 2^>NUL') do @perl "%SRC_DIR%\lib\checksrc.pl" "-D%SRC_DIR%\docs\examples" -ASNPRINTF "%%i"
     )
   )