Discussion:
[PATCH 1/2] Alias Target GetProjectInfoForReference for EWDK 20348 builds
Owen Smith
2021-06-03 13:32:53 UTC
Permalink
Signed-off-by: Owen Smith <***@citrix.com>
---
vs2019/version/version.vcxproj | 6 ++++++
vs2019/xenbus_coinst/xenbus_coinst.vcxproj | 6 ++++++
vs2019/xenbus_monitor/xenbus_monitor.vcxproj | 6 ++++++
3 files changed, 18 insertions(+)

diff --git a/vs2019/version/version.vcxproj b/vs2019/version/version.vcxproj
index 9d149d0..b6ec6f3 100644
--- a/vs2019/version/version.vcxproj
+++ b/vs2019/version/version.vcxproj
@@ -13,4 +13,10 @@
<Target Name="Build">
<Exec Command="powershell.exe -ExecutionPolicy Bypass -NoProfile -NonInteractive -File $(Script) $(Platform) $(SolutionDir) $(IncludeDir) $(SourceDir)" />
</Target>
+ <Target Name="GetProjectInfoForReference"
+ Returns="@(ProjectInfoForReference)">
+ <ItemGroup>
+ <ProjectInfoForReference Include="@(LibFullPath)" />
+ </ItemGroup>
+ </Target>
</Project>
diff --git a/vs2019/xenbus_coinst/xenbus_coinst.vcxproj b/vs2019/xenbus_coinst/xenbus_coinst.vcxproj
index df3cc04..b239210 100644
--- a/vs2019/xenbus_coinst/xenbus_coinst.vcxproj
+++ b/vs2019/xenbus_coinst/xenbus_coinst.vcxproj
@@ -58,4 +58,10 @@
<None Include="..\..\src\coinst\xenbus_coinst.def" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+ <Target Name="GetProjectInfoForReference"
+ Returns="@(ProjectInfoForReference)">
+ <ItemGroup>
+ <ProjectInfoForReference Include="@(LibFullPath)" />
+ </ItemGroup>
+ </Target>
</Project>
diff --git a/vs2019/xenbus_monitor/xenbus_monitor.vcxproj b/vs2019/xenbus_monitor/xenbus_monitor.vcxproj
index 8703bb5..4e4ccc5 100644
--- a/vs2019/xenbus_monitor/xenbus_monitor.vcxproj
+++ b/vs2019/xenbus_monitor/xenbus_monitor.vcxproj
@@ -74,4 +74,10 @@
<ResourceCompile Include="..\..\src\monitor\xenbus_monitor.rc" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+ <Target Name="GetProjectInfoForReference"
+ Returns="@(ProjectInfoForReference)">
+ <ItemGroup>
+ <ProjectInfoForReference Include="@(LibFullPath)" />
+ </ItemGroup>
+ </Target>
</Project>
--
2.31.1.windows.1
Owen Smith
2021-06-03 13:32:54 UTC
Permalink
- Disable C4061, enumerator 'value' in switch of 'type' is not explicitly
handled by a case label
- C4063, case '3' is not a valid value for switch of enum '_XENBUS_STORE_PERMISSION_MASK'
Adds XENBUS_STORE_PERM_READ_WRITE to _XENBUS_STORE_PERMISSION_MASK

Signed-off-by: Owen Smith <***@citrix.com>
---
include/store_interface.h | 1 +
src/xenbus/store.c | 2 +-
vs2019/xen/xen.vcxproj | 2 +-
vs2019/xenbus/xenbus.vcxproj | 2 +-
vs2019/xenfilt/xenfilt.vcxproj | 2 +-
5 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/include/store_interface.h b/include/store_interface.h
index e1251dd..7742955 100644
--- a/include/store_interface.h
+++ b/include/store_interface.h
@@ -57,6 +57,7 @@ typedef enum _XENBUS_STORE_PERMISSION_MASK {
XENBUS_STORE_PERM_NONE = 0,
XENBUS_STORE_PERM_READ = 1,
XENBUS_STORE_PERM_WRITE = 2,
+ XENBUS_STORE_PERM_READ_WRITE = 3,
} XENBUS_STORE_PERMISSION_MASK;

/*! \typedef XENBUS_STORE_PERMISSION
diff --git a/src/xenbus/store.c b/src/xenbus/store.c
index ce4c755..2fd2e19 100644
--- a/src/xenbus/store.c
+++ b/src/xenbus/store.c
@@ -1958,7 +1958,7 @@ StorePermissionToString(
*Buffer = 'w';
break;

- case XENBUS_STORE_PERM_READ | XENBUS_STORE_PERM_WRITE:
+ case XENBUS_STORE_PERM_READ_WRITE:
*Buffer = 'b';
break;

diff --git a/vs2019/xen/xen.vcxproj b/vs2019/xen/xen.vcxproj
index 39b5bda..1bf6e1e 100644
--- a/vs2019/xen/xen.vcxproj
+++ b/vs2019/xen/xen.vcxproj
@@ -24,7 +24,7 @@
<PreprocessorDefinitions>PROJECT=$(ProjectName);POOL_NX_OPTIN=1;NT_PROCESSOR_GROUPS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<IntrinsicFunctions>true</IntrinsicFunctions>
<WarningLevel>EnableAllWarnings</WarningLevel>
- <DisableSpecificWarnings>4146;4464;4711;4770;4548;4820;4668;4255;5045;6001;6054;26451;28196;30030;30029;%(DisableSpecificWarnings)</DisableSpecificWarnings>
+ <DisableSpecificWarnings>4061;4146;4464;4711;4770;4548;4820;4668;4255;5045;6001;6054;26451;28196;30030;30029;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<EnablePREfast>true</EnablePREfast>
</ClCompile>
diff --git a/vs2019/xenbus/xenbus.vcxproj b/vs2019/xenbus/xenbus.vcxproj
index ff40c43..85f21a8 100644
--- a/vs2019/xenbus/xenbus.vcxproj
+++ b/vs2019/xenbus/xenbus.vcxproj
@@ -24,7 +24,7 @@
<IntrinsicFunctions>true</IntrinsicFunctions>
<AdditionalIncludeDirectories>$(WindowsSdkDir)\include\km;..\..\include;..\..\include\xen;..\..\src\common;</AdditionalIncludeDirectories>
<WarningLevel>EnableAllWarnings</WarningLevel>
- <DisableSpecificWarnings>4146;4464;4711;4770;4548;4820;4668;4255;5045;6001;6054;26451;28196;30030;30029;%(DisableSpecificWarnings)</DisableSpecificWarnings>
+ <DisableSpecificWarnings>4061;4146;4464;4711;4770;4548;4820;4668;4255;5045;6001;6054;26451;28196;30030;30029;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<EnablePREfast>true</EnablePREfast>
</ClCompile>
diff --git a/vs2019/xenfilt/xenfilt.vcxproj b/vs2019/xenfilt/xenfilt.vcxproj
index b3ce00f..c797483 100644
--- a/vs2019/xenfilt/xenfilt.vcxproj
+++ b/vs2019/xenfilt/xenfilt.vcxproj
@@ -24,7 +24,7 @@
<IntrinsicFunctions>true</IntrinsicFunctions>
<AdditionalIncludeDirectories>$(WindowsSdkDir)\include\km;..\..\include;..\..\include\xen;..\..\src\common;</AdditionalIncludeDirectories>
<WarningLevel>EnableAllWarnings</WarningLevel>
- <DisableSpecificWarnings>4464;4711;4770;4548;4820;4668;4255;5045;6001;6054;26451;28196;30030;30029;%(DisableSpecificWarnings)</DisableSpecificWarnings>
+ <DisableSpecificWarnings>4061;4464;4711;4770;4548;4820;4668;4255;5045;6001;6054;26451;28196;30030;30029;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<EnablePREfast>true</EnablePREfast>
</ClCompile>
--
2.31.1.windows.1
Loading...