Compiler warnings under VC 2008

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
Yves Neumann
Posts: 30
Joined: Fri, 2005-12-02, 17:06
Location: Germany

Compiler warnings under VC 2008

#1 Post by Yves Neumann »

Under VC 2008 I get the following warnings when setting the warning level to 4 (highest):
1.
c:\dcmtk-3.5.5-win32-i386\include\dcmtk\dcmdata\dcobject.h(652) : warning C4512: 'DcmObject::PrintHelper' : assignment operator could not be generated
c:\dcmtk-3.5.5-win32-i386\include\dcmtk\dcmdata\dcobject.h(638) : see declaration of 'DcmObject::PrintHelper'

2.
c:\dcmtk-3.5.5-win32-i386\include\dcmtk\dcmimgle\diovpln.h(232) : warning C4244: '=' : conversion from 'const int' to 'Sint16', possible loss of data
c:\dcmtk-3.5.5-win32-i386\include\dcmtk\dcmimgle\diovpln.h(232) : warning C4244: '=' : conversion from 'const int' to 'Sint16', possible loss of data

I got the warnings compiling the snapshot from 2010-06-10 und Visual Studio 2008 (not the 'Express' version if it matters).

Regards, Yves

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »

Thank you for reporting this. The second issue has just been fixed. I'll forward the first one to the original author ...

Uli Schlachter
DCMTK Developer
Posts: 120
Joined: Thu, 2009-11-26, 08:15

#3 Post by Uli Schlachter »

Again, thanks for the report.
I added a private, undefined assignment operator to DcmObject::PrintHelper. This made about 50 warnings go away. However there are 249 warnings left (I was seeing 298 warnings before while compiling dcmdata). :?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest