[Insight-developers] WARNINGS with VC6.0

Lydia Ng lng@insightful.com
Thu, 14 Mar 2002 11:37:17 -0800


Robert,

Have you enable run-time information? see info
http://msdn.microsoft.com/library/default.asp?url=3D/library/en-us/vccore=
/
html/C4541.asp

- Lydia

-----Original Message-----
From: Robert Tamburo [mailto:rjtst21+@pitt.edu]
Sent: Thursday, March 14, 2002 11:34 AM
To: insight-Developers
Subject: [Insight-developers] WARNINGS with VC6.0


Hi,
=20
I'm currently working on a test class and if I simply include the files
needed:
=20
#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"
=20
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)'
=20
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 *)'
=20
Should this be considered normal???????????
=20
-Rob