Examples of errors detected by the V3065 diagnostic.


V3065. Parameter is not utilized inside method's body.


Xenko

V3065 Parameter 'height' is not utilized inside method's body. SiliconStudio.Xenko Image.cs 473


private static ImageDescription
CreateDescription(TextureDimension dimension,
                  int width, int height, int depth, ....)

public static Image New3D(int width, int height, int depth, ....)
{
    return new Image(
               CreateDescription(
                  TextureDimension.Texture3D,
                  width, width, depth,
                  mipMapCount, format, 1),
               dataPointer, 0, null, false);
}

Old NASA World Wind (C#)

V3065 Parameter 'vertex2' is not utilized inside method's body. CPolygon.cs 227


public bool Diagonal(CPoint2D vertex1, CPoint2D vertex2)
{
 ....
 for (int i= 0; i<nNumOfVertices; i++)
 {
   ....
   //Diagonal line:
   double x1=vertex1.X;
   double y1=vertex1.Y;
   double x2=vertex1.X;
   double y2=vertex1.Y;
   ....
 }
 ....
}


Do you make errors in the code?

Check your code
with PVS-Studio

Static code analysis
for C, C++, and C#

goto PVS-Studio;
We use cookies for the analysis of events to improve our content and make user interaction more convenient. By continuing the view of our web-pages you accept the terms of using these files. You can find out more about cookie-files and privacy policy or close the notification, by clicking on the button. Learn More →
Do not show again