Skip to content

Commit

Permalink
Suppress warning emitted by the latest compiler version
Browse files Browse the repository at this point in the history
  • Loading branch information
ltrzesniewski committed Jun 26, 2023
1 parent dd32e73 commit 4732ffa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ZeroLog.Benchmarks/EnumTests/EnumBenchmarks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,11 @@ private struct Cache<T>
private static IntPtr TypedRefImpl<T>()
where T : struct
{
#pragma warning disable CS8500
var value = default(T);
var typedRef = __makeref(value);
return ((IntPtr*)&typedRef)[1];
#pragma warning restore CS8500
}

[Benchmark]
Expand Down

0 comments on commit 4732ffa

Please sign in to comment.