Skip to content

Conversation

@sean-gilliam
Copy link
Member

This PR fixes a number of warnings related to CS0162 (Unreachable code detected).

Most of these are related to conditional debugging flags that aren't necessarrily set during a normal compilation. There are some however that are there as to clear any compile errors that would happen due to ambigious references.

The pragmas are added to the function boundaries so as not to pollute the logic in the function.

This PR fixes a number of warnings related to CS0162 (Unreachable code detected).

Most of these are related to conditional debugging flags that aren't necessarrily set during a normal compilation. There are some however that are there as to clear any compile errors that would happen due to ambigious references.

The pragmas are added to the function boundaries so as not to pollute the logic in the function.
Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but left a comment on how to handle one of the warnings we disabled.

return Deploy.Equals(other.Deploy);
}

#pragma warning disable CS0162 // Disabled because it's marked as a TODO
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably fix this issue by closing #599 just comparing if the two supervisor strategies are equal by reference. Too complicated to do it via anything else. What do you think @sean-gilliam ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, we have a serializable supervisor strategy but no one uses it because the syntax is extremely awkward.

@Aaronontheweb Aaronontheweb merged commit 8ae6a15 into akkadotnet:dev Sep 30, 2019
@sean-gilliam sean-gilliam deleted the fix-cs0162-warnings branch September 30, 2019 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants