From f4906db06fa402959e5bae213562d20882d4090b 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 7d9dd73..1a93f01 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;%(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