]> Creatis software - gdcm.git/commitdiff
avoid warnings
authorjpr <jpr>
Fri, 19 Oct 2007 15:06:08 +0000 (15:06 +0000)
committerjpr <jpr>
Fri, 19 Oct 2007 15:06:08 +0000 (15:06 +0000)
Example/exExtractOverlaysACR.cxx
Example/exExtractOverlaysDCM.cxx

index 72f478f97b10767e9a69b5cbd60393c46db46d4b..b3615af12c8b9a9ef143937f9cd9c42551b7f60e 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: exExtractOverlaysACR.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/09/14 08:23:34 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2007/10/19 15:06:08 $
+  Version:   $Revision: 1.3 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -210,7 +210,7 @@ int main(int argc, char *argv[])
 
       if( GDCM_NAME_SPACE::Debug::GetDebugFlag() )
          std::cout << "Mask :[" <<std::hex << mask << "]" << std::endl;
-      for (int j=0; j<nxy; j++)
+      for (unsigned int j=0; j<nxy; j++)
       {
          if( GDCM_NAME_SPACE::Debug::GetDebugFlag() )
             if (pixels[j] >= 0x1000)// if it contains at least one overlay bit
index b908201138aa7df4ae0113b2599b6361a8a6808f..03285ee7846e34e5190d35e68ad996564c6e9403 100755 (executable)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: exExtractOverlaysDCM.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/09/14 08:23:34 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2007/10/19 15:06:08 $
+  Version:   $Revision: 1.3 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -150,8 +150,6 @@ int main(int argc, char *argv[])
          continue;
       }
 
-      uint8_t *outputData = new uint8_t[nxy];
-
       GDCM_NAME_SPACE::DataEntry *e = f->GetDataEntry(currentOvlGroup, 0x3000);
       if (e == 0)
       {