From 15915dd3b6d2c5e64f4a06a1516ae51b3cb9944a Mon Sep 17 00:00:00 2001 From: malaterre Date: Fri, 25 Jun 2004 19:37:05 +0000 Subject: [PATCH] ENH: flipping -W -Wall into -Wall -W does not produce the same warnings --- src/gdcmDocument.cxx | 8 ++++---- src/gdcmHeaderHelper.cxx | 6 +++--- src/gdcmUtil.cxx | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/gdcmDocument.cxx b/src/gdcmDocument.cxx index e145dc0e..6080c6ef 100644 --- a/src/gdcmDocument.cxx +++ b/src/gdcmDocument.cxx @@ -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(); diff --git a/src/gdcmHeaderHelper.cxx b/src/gdcmHeaderHelper.cxx index e2492dc8..4f53b970 100644 --- a/src/gdcmHeaderHelper.cxx +++ b/src/gdcmHeaderHelper.cxx @@ -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 distlist; diff --git a/src/gdcmUtil.cxx b/src/gdcmUtil.cxx index 649f9893..cc9eff41 100644 --- a/src/gdcmUtil.cxx +++ b/src/gdcmUtil.cxx @@ -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; -- 2.48.1