]> Creatis software - gdcm.git/commitdiff
* When compiling with distutils (see setup.py) the C++ compiler is
authorfrog <frog>
Wed, 28 May 2003 19:36:20 +0000 (19:36 +0000)
committerfrog <frog>
Wed, 28 May 2003 19:36:20 +0000 (19:36 +0000)
        called with different flags than the default ones (with automake).
        In order to fix all those warning, I compiled gdcm with the command
           make 'CXXFLAGS=-Wall -Wstrict-prototypes -D__STDC_LIMIT_MACROS'
        and went for warning fixes:
        - src/gdcmHeader.cxx, Test/dcm2acr.cxx, pourFindTaggs.cxx cleaned
          up from unused variables.
        - vtk/vtkGdcmReader.cxx: potential bug fix.
      * src/gdcmHeader.h: Doxygen warning cleanup

ChangeLog
src/gdcmDictSet.h
src/gdcmElValSet.cxx
src/gdcmHeader.cxx
src/gdcmHeader.h
vtk/vtkGdcmReader.cxx

index 1f4c8132f0bdfe1e62077ded47adba113c4f26d0..1f1948d3ddac06ab58819c2b8a396fa57895105a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2003-05-28  Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
+      * When compiling with distutils (see setup.py) the C++ compiler is
+        called with different flags than the default ones (with automake).
+        In order to fix all those warning, I compiled gdcm with the command
+           make 'CXXFLAGS=-Wall -Wstrict-prototypes -D__STDC_LIMIT_MACROS'
+        and went for warning fixes:
+        - src/gdcmHeader.cxx, Test/dcm2acr.cxx, pourFindTaggs.cxx cleaned
+          up from unused variables.
+        - vtk/vtkGdcmReader.cxx: potential bug fix.
+      * src/gdcmHeader.h: Doxygen warning cleanup
+
 2003-05-27  Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
       * gdcmPython/gdcm.i:
         - typemaps correction to take into account the systematic replacement
index 8d9f5b043f03212d3c1ee4b1a304d46e5bdf05d8..56fcc33d8d3d2ea0af7dc21f1ccece5a64f9b7d6 100644 (file)
@@ -25,7 +25,7 @@ private:
    /// Directory path to dictionaries
    std::string DictPath;
        int AppendDict(gdcmDict* NewDict);
-       void LoadDictFromFile(std::string filename, DictKey);
+       void LoadDictFromFile(std::string FileName, DictKey Name);
    std::string BuildDictPath(void);
 public:
    std::list<std::string> * GetPubDictTagNames(void);
@@ -41,7 +41,7 @@ public:
        // TODO Swig std::string* GetAllDictNames();
        gdcmDictSet(void);
        ~gdcmDictSet(void);
-       void Print(std::ostream&);
+       void Print(std::ostream& os);
        gdcmDict* GetDict(DictKey DictName);
        gdcmDict* GetDefaultPubDict(void);
 };
index fa1aa113b9a24bdd94f38b698f0f652af6edb075..7e15c037bf33cf07cbbff3fa2b79a43cd7d4bf9d 100644 (file)
@@ -215,7 +215,8 @@ void gdcmElValSet::UpdateGroupLength(bool SkipSequence, FileType type) {
    for (GroupHT::iterator g = groupHt.begin();
         g != groupHt.end();
         ++g){ 
-  
+      // FIXME: g++ -Wall -Wstrict-prototypes reports on following line:
+      //        warning: unsigned int format, different type arg
       sscanf(g->first.c_str(),"%x",&gr_bid);
       tk = g->first + "|0000";
                      
index eeba821686d59ccbcdd8b577f12ddb916e940e6b..29955e13029d535e3746bba7de03d1aabe8dcc59 100644 (file)
@@ -1,4 +1,4 @@
-// $Header: /cvs/public/gdcm/src/Attic/gdcmHeader.cxx,v 1.67 2003/05/21 16:26:28 regrain Exp $
+// $Header: /cvs/public/gdcm/src/Attic/gdcmHeader.cxx,v 1.68 2003/05/28 19:36:21 frog Exp $
 
 #include <stdio.h>
 #include <cerrno>
@@ -714,7 +714,6 @@ void gdcmHeader::SetMaxSizeLoadElementValue(long NewSize) {
 void gdcmHeader::LoadElementValue(gdcmElValue * ElVal) {
    size_t item_read;
    guint16 group  = ElVal->GetGroup();
-   guint16 elem   = ElVal->GetElement();
    string  vr     = ElVal->GetVR();
    guint32 length = ElVal->GetLength();
    bool SkipLoad  = false;
index 5ee21488d96cffacc019d4f86fe71b061743d912..a6a33af2ade3f2c8c0feef2a6d1e0cbd252b00a2 100644 (file)
@@ -1,4 +1,4 @@
-// $Header: /cvs/public/gdcm/src/Attic/gdcmHeader.h,v 1.25 2003/05/21 16:26:28 regrain Exp $
+// $Header: /cvs/public/gdcm/src/Attic/gdcmHeader.h,v 1.26 2003/05/28 19:36:21 frog Exp $
 
 #ifndef GDCMHEADER_H
 #define GDCMHEADER_H
@@ -81,12 +81,12 @@ private:
    void SetMaxSizeLoadElementValue(long);
 
    gdcmDictEntry * GetDictEntryByNumber(guint16, guint16);
-   gdcmDictEntry * GetDictEntryByName(std::string name);
+   gdcmDictEntry * GetDictEntryByName(std::string Name);
 
    // ElValue related utilities
    gdcmElValue * ReadNextElement(void);
    gdcmElValue * NewElValueByNumber(guint16 group, guint16 element);
-   gdcmElValue * NewElValueByName(std::string name);
+   gdcmElValue * NewElValueByName(std::string Name);
 
    void FindLength(gdcmElValue *);
    void FindVR(gdcmElValue *);
@@ -158,7 +158,7 @@ public:
 
    int SetPubElValByName(std::string content, std::string TagName);
    int SetPubElValByNumber(std::string content, guint16 group, guint16 element);
-   int SetShaElValByName(std::string content, std::string ShadowTagName);
+   int SetShaElValByName(std::string content, std::string TagName);
    int SetShaElValByNumber(std::string content, guint16 group, guint16 element);
    
    int SetPubElValLengthByNumber(guint32 lgr, guint16 group, guint16 element);                                   
index 5dbc83eb070e25197f79ef219d10bd4353988b8b..a8672163d4ba108df6f3fa6b833ece59fe5bcaf6 100644 (file)
@@ -1,4 +1,4 @@
-// $Header: /cvs/public/gdcm/vtk/vtkGdcmReader.cxx,v 1.4 2003/05/21 16:26:29 regrain Exp $
+// $Header: /cvs/public/gdcm/vtk/vtkGdcmReader.cxx,v 1.5 2003/05/28 19:36:21 frog Exp $
 //CLEANME#include <vtkByteSwap.h>
 #include <stdio.h>
 #include <vtkObjectFactory.h>
@@ -166,7 +166,7 @@ void vtkGdcmReader::ExecuteData(vtkDataObject *output)
   int NumColumns = this->DataExtent[1] - this->DataExtent[0] + 1;
   int NumLines   = this->DataExtent[3] - this->DataExtent[2] + 1;
   int NumPlanes  = this->DataExtent[5] - this->DataExtent[4] + 1;
-  int size = NumColumns * NumLines * NumPlanes * GdcmFile.GetPixelSize();
+  size_t size = NumColumns * NumLines * NumPlanes * GdcmFile.GetPixelSize();
   if ( size != GdcmFile.GetImageDataSize() )
     {
     vtkDebugMacro("Inconsistency with GetImageDataSize");