[Insight-developers] Warnings need attention

Lorensen, William E (CRD) lorensen@crd.ge.com
Wed, 19 Sep 2001 08:23:16 -0400


Please fix the following warnings in your code:

cc-1552 CC: WARNING File = /home/lorensen/Insight/Testing/Code/Algorithms/itkDeformableTest.cxx, Line
= 76
  The variable "TestImage1" is set but never used.

    unsigned short TestImage1[400];
                   ^

cc-1174 CC: WARNING File = /home/lorensen/Insight/Testing/Code/Algorithms/itkDeformableTest.cxx, Line
= 138
  The variable "ClassImageDimension" was declared but never referenced.

    unsigned int ClassImageDimension = NDIMENSION;
                 ^

cc-1552 CC: WARNING File = /home/lorensen/Insight/Code/Algorithms/itkDeformableMesh.txx, Line = 124
  The variable "numcells" is set but never used.

    unsigned long i, j, jn, p, numpts, numcells;
                                       ^
          detected during instantiation of
                    "void itk::DeformableMesh<float>::Allocate()" 

cc-1174 CC: WARNING File = /home/lorensen/Insight/Code/Algorithms/itkBalloonForceFilter.txx, Line =
413
  The variable "l" was declared but never referenced.

    int i, p, q, label, l=0; 
                        ^
          detected during instantiation of "void
                    itk::BalloonForceFilter<DMesh, DMesh>::ComputeForce()" 

cc-1552 CC: WARNING File = /home/lorensen/Insight/Code/Algorithms/itkBalloonForceFilter.txx, Line =
416
  The variable "zs" is set but never used.

    float extends[3], t, xs, ys, zs, r[2]; 
                                 ^
          detected during instantiation of "void
                    itk::BalloonForceFilter<DMesh, DMesh>::ComputeForce()" 

cc-1174 CC: WARNING File = /home/lorensen/Insight/Code/Algorithms/itkBalloonForceFilter.txx, Line =
456
  The variable "d" was declared but never referenced.

    double d=0.0, f1=0.0;
           ^
          detected during instantiation of "void
                    itk::BalloonForceFilter<DMesh, DMesh>::ComputeForce()" 

cc-1174 CC: WARNING File = /home/lorensen/Insight/Code/Algorithms/itkBalloonForceFilter.txx, Line =
456
  The variable "f1" was declared but never referenced.

    double d=0.0, f1=0.0;
                  ^
          detected during instantiation of "void
                    itk::BalloonForceFilter<DMesh, DMesh>::ComputeForce()" 

cc-1174 CC: WARNING File = /home/lorensen/Insight/Code/Algorithms/itkBalloonForceFilter.txx, Line =
459
  The variable "slice" was declared but never referenced.

    int slice = i / slicediv; 
        ^
          detected during instantiation of "void
                    itk::BalloonForceFilter<DMesh, DMesh>::ComputeForce()" 

cc-1174 CC: WARNING File = /home/lorensen/Insight/Code/Algorithms/itkBalloonForceFilter.txx, Line =
231
  The variable "fd" was declared but never referenced.

    float d[3] = {0,0,0}, fd=0; 
                          ^
          detected during instantiation of
                    "void itk::BalloonForceFilter<DMesh, DMesh>::Initialize()" 

cc-1174 CC: WARNING File = /home/lorensen/Insight/Code/Algorithms/itkBalloonForceFilter.txx, Line =
615
  The variable "npts" was declared but never referenced.

    int npts = 3;
        ^
          detected during instantiation of
                    "void itk::BalloonForceFilter<DMesh, DMesh>::ComputeDt()" 

cc-1552 CC: WARNING File = /home/lorensen/Insight/Code/Algorithms/itkBalloonForceFilter.txx, Line =
984
  The variable "z_pt" is set but never used.

    IPT* z_pt;
         ^
          detected during instantiation of
                    "void itk::BalloonForceFilter<DMesh, DMesh>::GapSearch()"