Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CA1801 ignores uses in pointer expressions #1063

Closed
cston opened this issue Jun 29, 2016 · 2 comments
Closed

CA1801 ignores uses in pointer expressions #1063

cston opened this issue Jun 29, 2016 · 2 comments

Comments

@cston
Copy link
Member

cston commented Jun 29, 2016

unsafe class C
{
    static int F(byte* b, int x, int y)
    {
        return b[x] + y;
    }
}
c.cs(3,24): warning CA1801: Parameter b of method F is never used. Remove the parameter or use it in the method body.
c.cs(3,31): warning CA1801: Parameter x of method F is never used. Remove the parameter or use it in the method body.
@mavasani
Copy link
Contributor

This case is unknown but very likely IOperation bug, I'll add this case to that bug.

@mavasani
Copy link
Contributor

Added comment to the underlying IOperation bug: dotnet/roslyn#8884 (comment)

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

No branches or pull requests

2 participants