[Insight-developers] Warning in itkWatershedEquivalencyTable.txx

Lorensen, William E (CRD) lorensen@crd.ge.com
Thu, 28 Feb 2002 12:41:07 -0500


Josh,
The following warning is showing up in subject file:

Looks to me like the compiler is correct.

/home/lorensen/Insight/Code/Algorithms/itkWatershedEquivalencyTable.txx: In method `long unsigned int
itk::watershed::EquivalencyTable::RecursiveLookup(unsigned int) const':
/home/lorensen/Insight/Code/Algorithms/itkWatershedEquivalencyTable.txx:69: warning: `long unsigned
int last_ans' might be used uninitialized in this function
In file included from
/home/lorensen/Insight/Code/Algorithms/itkWatershedOneWayEquivalencyTable.h:139,
                 from /home/lorensen/Insight/Code/Algorithms/itkWatershedSegmentTable.h:25,
                 from /home/lorensen/Insight/Code/Algorithms/itkWatershedSegmenter.h:22,
                 from /home/lorensen/Insight/Code/Algorithms/itkWatershedBoundaryResolver.h:22,
                 from /home/lorensen/Insight/Testing/Code/Algorithms/itkAlgorithmsHeaderTest.cxx:118:
/home/lorensen/Insight/Code/Algorithms/itkWatershedOneWayEquivalencyTable.txx: In method `long
unsigned int itk::watershed::OneWayEquivalencyTable::RecursiveLookup(unsigned int) const':

-----------------------
unsigned long EquivalencyTable::RecursiveLookup(const unsigned a) const
{
  unsigned long ans = a;
  unsigned long last_ans;
  while ( this->IsEntry(ans) )
    {
      ans = this->Lookup(ans);
      if (ans == a ) return last_ans; // about to cycle again.
      last_ans = ans;
    }
  return ans;

}


-----Original Message-----
From: Joshua Cates [mailto:cates@cs.utah.edu]
Sent: Monday, February 25, 2002 11:57 AM
To: Insight-Developers
Subject: [Insight-developers] FYI neighborhood iterator documentation


Hi all,

I've expanded the documentation for the NeighborhoodIterators and related
classes under the Concepts section of the doxygen webpages.

Josh.
______________________________
 Josh Cates			
 School of Computer Science	
 University of Utah
 Email: cates@cs.utah.edu
 Phone: (801) 587-7697
 URL:   www.cs.utk.edu/~cates


_______________________________________________
Insight-developers mailing list
Insight-developers@public.kitware.com
http://public.kitware.com/mailman/listinfo/insight-developers