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-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
/// 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);
// 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);
};
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";
-// $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>
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;
-// $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
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 *);
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);
-// $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>
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");