]> Creatis software - gdcm.git/commitdiff
ENH: flipping -W -Wall into -Wall -W does not produce the same warnings
authormalaterre <malaterre>
Fri, 25 Jun 2004 19:37:05 +0000 (19:37 +0000)
committermalaterre <malaterre>
Fri, 25 Jun 2004 19:37:05 +0000 (19:37 +0000)
src/gdcmDocument.cxx
src/gdcmHeaderHelper.cxx
src/gdcmUtil.cxx

index e145dc0e5ca0a364ccafb88491e05da4315490d6..6080c6efacdc4a04216473e9e0050088582034de 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocument.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/06/25 17:48:45 $
-  Version:   $Revision: 1.34 $
+  Date:      $Date: 2004/06/25 19:37:05 $
+  Version:   $Revision: 1.35 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -656,7 +656,7 @@ gdcmBinEntry * gdcmDocument::ReplaceOrCreateByNumber(
                                          guint16 Elem)
 {
    gdcmDocEntry* a;
-   gdcmBinEntry* b;
+   gdcmBinEntry* b = 0;
    a = GetDocEntryByNumber( Group, Elem);
    if (a == NULL) {
       a =NewBinEntryByNumber(Group, Elem);
@@ -1198,7 +1198,7 @@ long gdcmDocument::ParseDES(gdcmDocEntrySet *set, long offset, long l_max, bool
    gdcmBinEntry *bn;   
    gdcmSeqEntry *sq;
    VRKey vr;
-   unsigned long l;
+   unsigned long l = 0;
    int depth; 
    
    depth = set->GetDepthLevel();     
index e2492dc8229ef93158a8bcca03ea6a897eee6e74..4f53b9704dd3f5ec53cacb6eb81c765b1fadd004 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmHeaderHelper.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/06/21 04:18:26 $
-  Version:   $Revision: 1.38 $
+  Date:      $Date: 2004/06/25 19:37:05 $
+  Version:   $Revision: 1.39 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -120,7 +120,7 @@ bool gdcmSerieHeader::ImagePositionPatientOrdering()
   float normal[3];
   float ipp[3];
   float dist;
-  float min, max;
+  float min = 0, max = 0;
   bool first = true;
   int n=0;
   std::vector<float> distlist;
index 649f98931c97b482af7a5ffd10ef2ec7d05d2a7a..cc9eff410e85cfc679dd9b64fcf6dfa0a2e5db6f 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmUtil.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/06/23 03:36:24 $
-  Version:   $Revision: 1.45 $
+  Date:      $Date: 2004/06/25 19:37:05 $
+  Version:   $Revision: 1.46 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -123,7 +123,7 @@ std::string GetName(std::string &fullName)
   if (a == '/' || a == '\\') {
      fin--;
   }
-  int deb;
+  int deb = 0;
   for (int i=fin;i!=0;i--) {
      if (fullName.c_str()[i] == '/' || fullName.c_str()[i] == '\\')  
         break;