Skip to content

Commit

Permalink
fix false compiler suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
ssg committed Nov 12, 2024
1 parent a65239f commit b78ad81
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions benchmark/BenchmarkSuite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public class BenchmarkSuite
private static readonly byte[] buf = new byte[BufSize];
private static readonly byte[] sipHashKey = new byte[16];

#pragma warning disable IDE0079 // Remove unnecessary suppression
#pragma warning disable CA1822 // Mark members as static - BenchmarkDotNet requires these as instance members

[Benchmark]
Expand All @@ -36,4 +37,5 @@ public class BenchmarkSuite
public void Fnv1a_64() => Fnv1a.Hash64(buf);

#pragma warning restore CA1822 // Mark members as static
#pragma warning restore IDE0079 // Remove unnecessary suppression
}

0 comments on commit b78ad81

Please sign in to comment.