]> Creatis software - gdcm.git/commitdiff
ENH: Some more borland issues
authormalaterre <malaterre>
Tue, 9 Nov 2004 22:15:36 +0000 (22:15 +0000)
committermalaterre <malaterre>
Tue, 9 Nov 2004 22:15:36 +0000 (22:15 +0000)
Example/Write.cxx
src/gdcmDebug.cxx
src/gdcmDicomDir.cxx
src/gdcmDocEntry.cxx
src/gdcmHeaderHelper.cxx

index c1be99465ff6b23d546662b8d3c454e662f779ad..51352fe637b81df238105dcff4250601d06dd9d5 100644 (file)
@@ -92,6 +92,7 @@ int main(int argc, char* argv[])
                 << std::endl; 
    }
    imageData= f1->GetImageData();
+   (void)imageData;  // to avoid warnings
 
    switch (argv[2][0]) {
    case 'a' :
index 787c529cc98d5880043d853804f6f673891f0021..fe3a5414c0581fe53085a7040c024a6b979e3d77 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDebug.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/10/15 10:43:27 $
-  Version:   $Revision: 1.10 $
+  Date:      $Date: 2004/11/09 22:15:36 $
+  Version:   $Revision: 1.11 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -116,7 +116,7 @@ void Debug::Exit(int a)
 #ifdef __GNUC__
    std::exit(a);
 #endif
-#ifdef _MSC_VER
+#ifdef _MSC_VER || __BORLANDC__
    exit(a);    // Found in #include <stdlib.h>
 #endif
 }
index 2fef35c1eb68023591088dab324e7d07d5a1431c..f61ae1b54ca330b237630d378b059a3543bf9adb 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDicomDir.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/11/09 21:55:55 $
-  Version:   $Revision: 1.78 $
+  Date:      $Date: 2004/11/09 22:15:36 $
+  Version:   $Revision: 1.79 $
   
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -775,7 +775,7 @@ void DicomDir::CreateDicomDir()
       return;
    }
 
-   DicomDirType type = DicomDir::GDCM_DICOMDIR_META;
+   DicomDirType type; // = DicomDir::GDCM_DICOMDIR_META;
    MetaElems = NewMeta();
 
    ListSQItem listItems = s->GetSQItems();
index 0777f253782b470407d8f10d41fad627c03d9926..46b77b93f267d3caf8c4a30e2524e89ec3112062 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocEntry.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/11/03 20:52:13 $
-  Version:   $Revision: 1.29 $
+  Date:      $Date: 2004/11/09 22:15:36 $
+  Version:   $Revision: 1.30 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -57,15 +57,12 @@ void DocEntry::Print(std::ostream& os)
    PrintLevel = 2; // FIXME
    
    size_t o;
-   unsigned short int g, e;
    std::string st;
    TSKey v;
    std::string d2, vr;
    std::ostringstream s;
    uint32_t lgth;
 
-   g  = GetGroup();
-   e  = GetElement();
    o  = GetOffset();
    vr = GetVR();
 
index 340dc812d577533db891d4e0119afbc594d04f14..c57ac307cfb90f29590c1fa62b45d8a1f2df20f5 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmHeaderHelper.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/10/12 04:35:46 $
-  Version:   $Revision: 1.43 $
+  Date:      $Date: 2004/11/09 22:15:36 $
+  Version:   $Revision: 1.44 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -247,12 +247,12 @@ bool SerieHeader::ImagePositionPatientOrdering()
 
 bool SerieHeader::ImageNumberOrdering() 
 {
-   int min, max, pos;
+   int min, pos;
    int n = 0;//CoherentGdcmFileList.size() is a O(N) operation !!
    unsigned char *partition;
   
    GdcmHeaderList::const_iterator it = CoherentGdcmFileList.begin();
-   min = max = (*it)->GetImageNumber();
+   min = (*it)->GetImageNumber();
 
    for (; it != CoherentGdcmFileList.end(); ++it, ++n)
    {