From b78ad81901e1ba43b41bc7e49e8a1c3dc51f32c9 Mon Sep 17 00:00:00 2001 From: Sedat Kapanoglu Date: Tue, 12 Nov 2024 15:11:25 -0800 Subject: [PATCH] fix false compiler suggestion --- benchmark/BenchmarkSuite.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/benchmark/BenchmarkSuite.cs b/benchmark/BenchmarkSuite.cs index 452bc77..7882a26 100644 --- a/benchmark/BenchmarkSuite.cs +++ b/benchmark/BenchmarkSuite.cs @@ -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] @@ -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 }