Skip to content

Commit 77b84b2

Browse files
committed
Suppress a warning
Cannot be fixed easily since it depends on the target framework.
1 parent 9cb9e83 commit 77b84b2

File tree

1 file changed

+2
-0
lines changed
  • src/Workspaces/Core/Portable/Workspace/Solution

1 file changed

+2
-0
lines changed

src/Workspaces/Core/Portable/Workspace/Solution/Checksum.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ public void WriteTo(ObjectWriter writer)
133133
public void WriteTo(Span<byte> span)
134134
{
135135
Contract.ThrowIfFalse(span.Length >= HashSize);
136+
#pragma warning disable CS9191 // The 'ref' modifier for an argument corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
136137
Contract.ThrowIfFalse(MemoryMarshal.TryWrite(span, ref Unsafe.AsRef(in this)));
138+
#pragma warning restore CS9191
137139
}
138140

139141
public static unsafe HashData FromPointer(HashData* hash)

0 commit comments

Comments
 (0)