From 7de5d2e6c8f136592248febcd878fde6567d8eb8 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Mon, 12 Jul 2021 18:44:32 +0200 Subject: driver: workaround SDV failure with code analysis SDV is using own CL.EXE which returns error code 2 when code analysis is turned on. However, we need code analysis results for DVL. While we could use a new "ReleaseSDV" configuration, we don't really require limited code analysis in Release builds, as long as we address all full code analysis warnings in Debug builds. To make DVL happier, an intermediate Release build was injected with code analysis turned on. Signed-off-by: Simon Rozman --- driver/driver.vcxproj | 11 ++++++----- wintun.proj | 5 +++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/driver/driver.vcxproj b/driver/driver.vcxproj index 4f7037b..a2ecd00 100644 --- a/driver/driver.vcxproj +++ b/driver/driver.vcxproj @@ -79,19 +79,20 @@ <_ProjectFileVersion>15.0.28127.55 ..\$(Configuration)\$(WintunPlatform)\$(ProjectName)-intermediate\ ..\$(ConfigurationName)\$(WintunPlatform)\ - true - - - $(WDKContentRoot)CodeAnalysis\DriverMustFixRules.ruleset + true + + AllRules.ruleset + + true + NDIS_MINIPORT_DRIVER=1;NDIS620_MINIPORT=1;NDIS683_MINIPORT=1;NDIS_WDM=1;POOL_ZERO_DOWN_LEVEL_SUPPORT;POOL_NX_OPTIN=1;%(PreprocessorDefinitions) /volatile:iso %(AdditionalOptions) - true NDIS_MINIPORT_DRIVER=1;NDIS620_MINIPORT=1;NDIS683_MINIPORT=1;NDIS_WDM=1;%(PreprocessorDefinitions) diff --git a/wintun.proj b/wintun.proj index af42d03..76e746e 100644 --- a/wintun.proj +++ b/wintun.proj @@ -57,7 +57,7 @@ - + @@ -69,7 +69,8 @@ --> + Inputs="driver\sdv\SDV.DVL.xml"> + -- cgit v1.2.3-59-g8ed1b