Skip to content

Commit

Permalink
silencing some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire committed May 20, 2024
1 parent 1e3f258 commit 46398c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions benchmark/Benchmark.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ public string GetValue(Summary summary, BenchmarkCase benchmarkCase)
[Config(typeof(Config))]
public class RealDataBenchmark
{

private class Config : ManualConfig
#pragma warning disable CA1812
private sealed class Config : ManualConfig
{
public Config()
{
Expand Down
4 changes: 2 additions & 2 deletions test/UTF8ValidationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,8 @@ public void SurrogateErrorTest()
[Fact]
public void BruteForceTest()
{
// Random rand = new Random(); // Random instance for test

#pragma warning disable CA5394
Random rand = new Random(); // Random instance for test
for (int i = 0; i < NumTrials; i++)
{
// Generate random UTF-8 sequence
Expand Down

0 comments on commit 46398c1

Please sign in to comment.