]> Creatis software - gdcm.git/commitdiff
Try to remove valgrind useless warnings
authorjpr <jpr>
Fri, 30 Jun 2006 09:47:35 +0000 (09:47 +0000)
committerjpr <jpr>
Fri, 30 Jun 2006 09:47:35 +0000 (09:47 +0000)
Testing/TestAllVM.cxx

index 8c28b66125e1994500524979aca1e165f4aa6302..d0ebb13e14bc9d69ac52a5d538695290d3a8ec2f 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestAllVM.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/03/25 17:02:11 $
-  Version:   $Revision: 1.12 $
+  Date:      $Date: 2006/06/30 09:47:35 $
+  Version:   $Revision: 1.13 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -36,9 +36,10 @@ int DoTheVMTest(std::string const &filename)
 
    gdcm::DocEntry *d = file->GetFirstEntry();
    std::cerr << "Testing file : " << filename << std::endl;
+   gdcm::DataEntry *de;
    while(d)
    {
-      if ( gdcm::DataEntry *de = dynamic_cast<gdcm::DataEntry *>(d) )
+      if ( de = dynamic_cast<gdcm::DataEntry *>(d) )
       {
          if ( !(de->GetGroup() % 2) ) // Don't check shadow elements. Righ now,
                                       // Private Dictionnary are not dealt with