Skip to content

Commit

Permalink
Suppress a warning
Browse files Browse the repository at this point in the history
Cannot be fixed easily since it depends on the target framework.
  • Loading branch information
jjonescz committed Oct 5, 2023
1 parent 9cb9e83 commit 77b84b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Workspaces/Core/Portable/Workspace/Solution/Checksum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ public void WriteTo(ObjectWriter writer)
public void WriteTo(Span<byte> span)
{
Contract.ThrowIfFalse(span.Length >= HashSize);
#pragma warning disable CS9191 // The 'ref' modifier for an argument corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
Contract.ThrowIfFalse(MemoryMarshal.TryWrite(span, ref Unsafe.AsRef(in this)));
#pragma warning restore CS9191
}

public static unsafe HashData FromPointer(HashData* hash)
Expand Down

0 comments on commit 77b84b2

Please sign in to comment.