Fix build breaks (dotnet/coreclr#27832)
authorDotnet-GitSync-Bot <45578709+Dotnet-GitSync-Bot@users.noreply.github.com>
Tue, 12 Nov 2019 08:09:19 +0000 (00:09 -0800)
committerJan Kotas <jkotas@microsoft.com>
Tue, 12 Nov 2019 08:09:19 +0000 (09:09 +0100)
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/d5bb8bf2437d447750cf0203dd55bb5160ff36b8

src/libraries/System.Private.CoreLib/src/System/Numerics/Vector.cs
src/libraries/System.Private.CoreLib/src/System/Numerics/Vector.tt

index b29c1e9..527c68b 100644 (file)
@@ -77,7 +77,9 @@ namespace System.Numerics
             [Intrinsic]
             get => s_zero;
         }
+#pragma warning disable 0649 // never assigned to
         private static readonly Vector<T> s_zero;
+#pragma warning restore 0649
 
         /// <summary>
         /// Returns a vector containing all ones.
index d715fbe..e362fac 100644 (file)
@@ -82,7 +82,9 @@ namespace System.Numerics
             [Intrinsic]
             get => s_zero;
         }
+#pragma warning disable 0649 // never assigned to
         private static readonly Vector<T> s_zero;
+#pragma warning restore 0649
 
         /// <summary>
         /// Returns a vector containing all ones.