Fix warnings
This commit is contained in:
Родитель
04f7364e2e
Коммит
a9403a9693
|
@ -2,6 +2,9 @@
|
|||
|
||||
namespace BenchmarkDotNet.Toolchains
|
||||
{
|
||||
/// <summary>
|
||||
/// Build a benchmark program with the Roslyn compiler.
|
||||
/// </summary>
|
||||
public class RoslynToolchain : Toolchain
|
||||
{
|
||||
internal RoslynToolchain() : base("Classic", new RoslynGenerator(), new RoslynBuilder(), new Executor())
|
||||
|
|
|
@ -26,6 +26,8 @@ namespace BenchmarkDotNet.Tests
|
|||
Assert.Throws<NotSupportedException>(() => CodeGenerator.Generate(benchmark));
|
||||
}
|
||||
|
||||
|
||||
#pragma warning disable CS1998
|
||||
[Benchmark]
|
||||
public async void AsyncVoidMethod() { }
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче