Skip to content

Commit

Permalink
Fixing warnings (#1771)
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeralsing committed Sep 25, 2022
1 parent dc7ec97 commit 35a94b3
Show file tree
Hide file tree
Showing 15 changed files with 19 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<NoWarn>8981</NoWarn>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
<OutputType>Exe</OutputType>
<LangVersion>10</LangVersion>
Expand Down
1 change: 1 addition & 0 deletions benchmarks/ClusterBenchmark/ClusterBenchmark.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<NoWarn>8981</NoWarn>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
<OutputType>Exe</OutputType>
<LangVersion>10</LangVersion>
Expand Down
1 change: 1 addition & 0 deletions benchmarks/GossipBenchmark/Messages/Messages.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<NoWarn>8981</NoWarn>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions benchmarks/RemoteBenchmark/Messages/Messages.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">
<PropertyGroup>
<NoWarn>8981</NoWarn>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions src/Proto.Actor/Proto.Actor.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">
<PropertyGroup>
<NoWarn>8981</NoWarn>
<RootNamespace>Proto</RootNamespace>
<Nullable>enable</Nullable>
<IsPackable>true</IsPackable>
Expand Down
2 changes: 1 addition & 1 deletion src/Proto.Cluster.CodeGen/Proto.Cluster.CodeGen.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

<ItemGroup>
<PackageReference Include="Handlebars.Net" Version="2.0.9"/>
<PackageReference Include="MinVer" Version="2.5.0" PrivateAssets="All"/>

<PackageReference Update="Microsoft.SourceLink.GitHub" Version="1.1.1"/>
<PackageReference Include="protobuf-net" Version="3.0.101"/>
<PackageReference Include="protobuf-net.Reflection" Version="3.0.101"/>
Expand Down
1 change: 1 addition & 0 deletions src/Proto.Cluster/Proto.Cluster.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">
<PropertyGroup>
<NoWarn>8981</NoWarn>
<IsPackable>true</IsPackable>
<Nullable>enable</Nullable>
<LangVersion>10</LangVersion>
Expand Down
2 changes: 2 additions & 0 deletions src/Proto.Cluster/PubSub/PubSubDeliveryException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@

namespace Proto.Cluster.PubSub;

#pragma warning disable RCS1194
public class PubSubDeliveryException : Exception
#pragma warning restore RCS1194
{
public PubSubDeliveryException(string? message) : base(message)
{
Expand Down
1 change: 1 addition & 0 deletions src/Proto.Remote/Proto.Remote.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">
<PropertyGroup>
<NoWarn>8981</NoWarn>
<IsPackable>true</IsPackable>
<Nullable>enable</Nullable>
<LangVersion>10</LangVersion>
Expand Down
4 changes: 2 additions & 2 deletions tests/Proto.Actor.Tests/PropsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ public void Given_Props_When_WithSpawner_Then_mutate_Spawner()
PID Spawner(ActorSystem s, string id, Props p, PID? parent, Action<IContext> callback) => new PID();

var props = new Props();
var props2 = props.WithSpawner(Spawner);
var props2 = props.WithSpawner(Spawner!);

Assert.NotEqual(props, props2);
Assert.Equal(Spawner, props2.Spawner);
Assert.Equal(Spawner!, props2.Spawner);

Assert.Equal(props.Dispatcher, props2.Dispatcher);
Assert.Equal(props.MailboxProducer, props2.MailboxProducer);
Expand Down
1 change: 1 addition & 0 deletions tests/Proto.Actor.Tests/Proto.Actor.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">
<PropertyGroup Label="Configuration">
<NoWarn>8981</NoWarn>
<RootNamespace>Proto.Tests</RootNamespace>
<LangVersion>10</LangVersion>
<OutputType>Library</OutputType>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<NoWarn>8981</NoWarn>
<TargetFrameworks>netcoreapp3.1;net6.0;net7.0</TargetFrameworks>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
Expand All @@ -12,10 +13,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>

<PackageReference Include="coverlet.collector" Version="3.1.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
Expand Down
1 change: 1 addition & 0 deletions tests/Proto.Cluster.Tests/Proto.Cluster.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">
<PropertyGroup>
<NoWarn>8981</NoWarn>
<LangVersion>10</LangVersion>
<TargetFrameworks>netcoreapp3.1;net6.0;net7.0</TargetFrameworks>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<NoWarn>8981</NoWarn>
<Nullable>enable</Nullable>
<LangVersion>10</LangVersion>
<IsPackable>false</IsPackable>
Expand All @@ -16,13 +17,8 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
<PackageReference Include="OpenTelemetry" Version="1.2.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>

<PackageReference Include="coverlet.collector" Version="3.1.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<NoWarn>8981</NoWarn>
<IsTestProject>false</IsTestProject>
<LangVersion>10</LangVersion>
<TargetFrameworks>netcoreapp3.1;net6.0;net7.0</TargetFrameworks>
Expand Down

0 comments on commit 35a94b3

Please sign in to comment.