[Insight-developers] WARNINGS with VC6.0
Robert Tamburo
rjtst21+@pitt.edu
Thu, 14 Mar 2002 14:33:53 -0500
This is a multi-part message in MIME format.
------=_NextPart_000_0059_01C1CB65.43DEE0E0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
I'm currently working on a test class and if I simply include the files =
needed:
#include "../code/itkBloxBoundaryProfileImage.h"
#include "itkImage.h"
#include "itkImageRegionIterator.h"
#include "itkFloodFilledSpatialFunctionConditionalIterator.h"
#include "itkEllipsoidInteriorExteriorSpatialFunction.h"=20
#include "itkBloxBoundaryPointImage.h"
#include "itkBloxBoundaryPointPixel.h"
#include "itkBinomialBlurImageFilter.h"
#include "itkDifferenceOfGaussiansGradientImageFilter.h"
#include "itkImageFileWriter.h"
#include "itkVTKImageIO.h"
I get 18 warnings that resemble:=20
g:\all_projects\insight\insight\code\common\itkobjectfactory.h(53) : =
warning C4541: 'dynamic_cast' used on polymorphic type 'class =
itk::LightObject' with /GR-; unpredictable behavior may result
g:\all_projects\insight\insight\code\common\itkobjectfactory.h(51) : =
while compiling class-template member function 'class =20
itk::SmartPointer<class itk::MutexLock> __cdecl =
itk::ObjectFactory<class itk::MutexLock>::Create(void)'
g:\all_projects\insight\insight\code\common\itkimagebase.txx(217) : =
warning C4541: 'dynamic_cast' used on polymorphic type 'class =
itk::DataObject' with /GR-; unpredictable behavior may result
h:\program files\microsoft visual studio\vc98\include\xmemory(59) : =
while compiling class-template member function 'void __thiscall =
itk::ImageBase<1>::CopyInformation(const class itk::DataObject *)'
Should this be considered normal???????????
-Rob
------=_NextPart_000_0059_01C1CB65.43DEE0E0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4912.300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Hi,</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>I'm currently working on a test class and if I =
simply include=20
the files needed:</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV>
<DIV><FONT size=3D2>#include =
"../code/itkBloxBoundaryProfileImage.h"</FONT></DIV>
<DIV><FONT size=3D2>#include "itkImage.h"<BR>#include=20
"itkImageRegionIterator.h"<BR>#include=20
"itkFloodFilledSpatialFunctionConditionalIterator.h"<BR>#include=20
"itkEllipsoidInteriorExteriorSpatialFunction.h" <BR></FONT><FONT =
size=3D2>#include=20
"itkBloxBoundaryPointImage.h"<BR>#include=20
"itkBloxBoundaryPointPixel.h"</FONT></DIV>
<DIV><FONT size=3D2>#include "itkBinomialBlurImageFilter.h"<BR>#include=20
"itkDifferenceOfGaussiansGradientImageFilter.h"</FONT></DIV>
<DIV><FONT size=3D2>#include "itkImageFileWriter.h"<BR>#include=20
"itkVTKImageIO.h"</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>I get 18 warnings that resemble: </FONT></DIV>
<DIV><FONT=20
size=3D2>g:\all_projects\insight\insight\code\common\itkobjectfactory.h(5=
3) :=20
warning C4541: 'dynamic_cast' used on polymorphic type 'class =
=20
itk::LightObject' with /GR-; unpredictable behavior may =
result</FONT></DIV>
<DIV><FONT=20
size=3D2>g:\all_projects\insight\insight\code\common\itkobjectfactory.h(5=
1) :=20
while compiling class-template member function=20
'class &=
nbsp;=20
</FONT></DIV>
<DIV><FONT size=3D2> itk::SmartPointer<class=20
itk::MutexLock> __cdecl itk::ObjectFactory<class=20
itk::MutexLock>::Create(void)'</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT=20
size=3D2>g:\all_projects\insight\insight\code\common\itkimagebase.txx(217=
) :=20
warning C4541: 'dynamic_cast' used on polymorphic type 'class =
=20
itk::DataObject' with /GR-; unpredictable behavior may =
result</FONT></DIV>
<DIV><FONT size=3D2>h:\program files\microsoft visual=20
studio\vc98\include\xmemory(59) : while compiling class-template member =
function=20
'void __thiscall =20
itk::ImageBase<1>::CopyInformation(const class itk::DataObject=20
*)'</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV></DIV>
<DIV><FONT size=3D2>Should this be considered =
normal???????????</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>-Rob</FONT></DIV></BODY></HTML>
------=_NextPart_000_0059_01C1CB65.43DEE0E0--