]> xenbits.xensource.com Git - pvdrivers/win/xeniface.git/commitdiff
Disable warning about spectre mitigation
authorMarek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Tue, 10 Jul 2018 14:44:32 +0000 (15:44 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Tue, 10 Jul 2018 14:44:32 +0000 (15:44 +0100)
CL emits a warning about every place that will get spectre mitigation
when compiled with /Qspectre. Even if this option is already used. This
breaks the build, as warnings are treated as errors in xeniface.

Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Also disable warning for co-installer build.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
vs2017/xeniface/xeniface.vcxproj
vs2017/xeniface_coinst/xeniface_coinst.vcxproj

index 69a4b096b8f8f6a1d7d530dc0bc642db14e2d207..55591830b53acca6784084fea4d2e57ed5aa9cb7 100644 (file)
@@ -24,7 +24,7 @@
       <PreprocessorDefinitions>__MODULE__="XENIFACE";POOL_NX_OPTIN=1;NT_PROCESSOR_GROUPS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <IntrinsicFunctions>true</IntrinsicFunctions>
       <WarningLevel>EnableAllWarnings</WarningLevel>
-      <DisableSpecificWarnings>4464;4711;4548;4770;4820;4668;4255;6001;6054;28160;30030;30029;%(DisableSpecificWarnings)</DisableSpecificWarnings>
+      <DisableSpecificWarnings>4464;4711;4548;4770;4820;4668;4255;5045;6001;6054;28160;30030;30029;%(DisableSpecificWarnings)</DisableSpecificWarnings>
       <MultiProcessorCompilation>true</MultiProcessorCompilation>
       <EnablePREfast>true</EnablePREfast>
     </ClCompile>
index 8ac4bc5a151bb6dd6dfe1179a3735530a31a2c4d..5b4a078b58f2d4601595ee1ba3ef28982f641019 100644 (file)
@@ -21,7 +21,7 @@
       <AdditionalIncludeDirectories>$(SolutionDir)..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
       <PreprocessorDefinitions>__MODULE__="XENIFACE_COINST";%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <WarningLevel>EnableAllWarnings</WarningLevel>
-      <DisableSpecificWarnings>4127;4711;4548;4820;4668;4255;6001;6054;28196;%(DisableSpecificWarnings)</DisableSpecificWarnings>
+      <DisableSpecificWarnings>4127;4711;4548;4820;4668;4255;5045;6001;6054;28196;%(DisableSpecificWarnings)</DisableSpecificWarnings>
       <MultiProcessorCompilation>true</MultiProcessorCompilation>
       <EnablePREfast>true</EnablePREfast>
       <RuntimeLibrary Condition="'$(UseDebugLibraries)'=='true'">MultiThreadedDebug</RuntimeLibrary>