]> xenbits.xensource.com Git - pvdrivers/win/xennet.git/commitdiff
Disable warning about spectre mitigation
authorMarek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Tue, 10 Jul 2018 13:31:46 +0000 (14:31 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Tue, 10 Jul 2018 13:31:46 +0000 (14:31 +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 xennet.

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

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

index 387cdf5118e3cf44c423ae1de9906773b6a67c35..a64d0cb36e28fda1659951bbcc3eb5148c365e87 100644 (file)
@@ -26,7 +26,7 @@
       <IntrinsicFunctions>true</IntrinsicFunctions>
       <AdditionalIncludeDirectories>$(WindowsSdkDir)\include\km;..\..\include;..\..\include\xen;</AdditionalIncludeDirectories>
       <WarningLevel>EnableAllWarnings</WarningLevel>
-      <DisableSpecificWarnings>4464;4711;4770;4548;4820;4668;4255;6001;6054;28160;28196;30030;30029;%(DisableSpecificWarnings)</DisableSpecificWarnings>
+      <DisableSpecificWarnings>4464;4711;4770;4548;4820;4668;4255;5045;6001;6054;28160;28196;30030;30029;%(DisableSpecificWarnings)</DisableSpecificWarnings>
       <MultiProcessorCompilation>true</MultiProcessorCompilation>
       <EnablePREfast>true</EnablePREfast>
     </ClCompile>
index de6108689a2473c460be95ad4bb038e4373371a3..4b819b43c3a67fed0cb596e51df99bb25efbd508 100644 (file)
@@ -22,7 +22,7 @@
       <AdditionalIncludeDirectories>$(SolutionDir)..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
       <PreprocessorDefinitions>__MODULE__="XENNET_COINST";%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <WarningLevel>EnableAllWarnings</WarningLevel>
-      <DisableSpecificWarnings>4548;4820;4668;4255;6001;6054;28196;%(DisableSpecificWarnings)</DisableSpecificWarnings>
+      <DisableSpecificWarnings>4548;4820;4668;4255;5045;6001;6054;28196;%(DisableSpecificWarnings)</DisableSpecificWarnings>
       <MultiProcessorCompilation>true</MultiProcessorCompilation>
       <EnablePREfast>true</EnablePREfast>
       <RuntimeLibrary Condition="'$(UseDebugLibraries)'=='true'">MultiThreadedDebug</RuntimeLibrary>