From dbba648c3bf0b1acc5084776dc0862bfb9ca93fb Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Wed, 5 Dec 2018 23:13:03 +0900 Subject: [PATCH] Suppress CS0171 from generated partial types --- src/Uno.CodeGen/EqualityGenerator.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Uno.CodeGen/EqualityGenerator.cs b/src/Uno.CodeGen/EqualityGenerator.cs index 8a82a72..882d4a6 100644 --- a/src/Uno.CodeGen/EqualityGenerator.cs +++ b/src/Uno.CodeGen/EqualityGenerator.cs @@ -288,7 +288,9 @@ namespace Uno } using (builder.BlockInvariant("public override int GetHashCode()")) { + builder.AppendLineInvariant("#pragma warning disable CS0171"); builder.AppendLineInvariant("return _computedHashCode ?? (int)(_computedHashCode = ComputeHashCode());"); + builder.AppendLineInvariant("#pragma warning restore CS0171"); } builder.AppendLine();