diff --git a/compile.cmd b/compile.cmd index 381126ab..a27b27b8 100644 --- a/compile.cmd +++ b/compile.cmd @@ -1,3 +1,8 @@ @echo off -%* | findstr /v /b "warning C4786" +%* > "%TEMP%\compile.tmp" +set error=%errorlevel% + +type %TEMP%\compile.tmp | findstr /v /b "warning C4786" + +exit /b %error%