[Insight-developers] VC7 .NET warning

Lydia Ng lng@insightful.com
Tue, 26 Nov 2002 11:30:55 -0800


It is non-existent in VC6 also.

> -----Original Message-----
> From: Miller, James V (Research) [mailto:millerjv@crd.ge.com]
> Sent: Tuesday, November 26, 2002 11:29 AM
> To: Lydia Ng; Luis Ibanez
> Cc: insight-developers@public.kitware.com
> Subject: RE: [Insight-developers] VC7 .NET warning
>=20
>=20
> Could the warning number have changed between revisions of VC?
>=20
> > -----Original Message-----
> > From: Lydia Ng [mailto:lng@insightful.com]
> > Sent: Tuesday, November 26, 2002 2:17 PM
> > To: Luis Ibanez
> > Cc: insight-developers@public.kitware.com
> > Subject: RE: [Insight-developers] VC7 .NET warning
> >=20
> >=20
> > Done.
> >=20
> > In itkWin32Header.h I am a bit suspicious of
> >=20
> > // C++ exception specification ignored except to indicate...
> > #pragma warning ( disable : 4267 )
> >=20
> > since warning number 4267 is non-existent.
> >=20
> > Should I take it out?
> >=20
> > - Lydia
> >=20
> > > -----Original Message-----
> > > From: Luis Ibanez [mailto:luis.ibanez@kitware.com]
> > > Sent: Tuesday, November 26, 2002 9:54 AM
> > > To: Lydia Ng
> > > Cc: insight-developers@public.kitware.com
> > > Subject: Re: [Insight-developers] VC7 .NET warning
> > >=20
> > >=20
> > >=20
> > > Hi Lydia,
> > >=20
> > > That sounds reasonable.
> > > It will get rid of a lot of warnings on .NET.
> > >=20
> > >=20
> > > Would you like to add it to the list of pragmas in
> > >=20
> > >     Code/Common/itkWin32Header.h
> > >=20
> > >=20
> > >=20
> > >=20
> > >     Luis
> > >=20
> > >=20
> > > =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > >=20
> > > Lydia Ng wrote:
> > >=20
> > > > In order to reduce the number of warnings on VC7 .NET
> > > > could we also diable C4290 ?
> > > >=20
> > > > D:\ibanez\src\InsightNightly\Code\Common\itkImage.h(280) :=20
> > > warning C4290: C++ exception specification ignored except to=20
> > > indicate a function is not __declspec(nothrow)
> > > >=20
> > > > -------------------------------------
> > > > From:
> > > >=20
> > http://msdn.microsoft.com/library/default.asp?url=3D/library/en-
> > us/vccore/html/C4290.asp
> > >=20
> > > C++ exception specification ignored except to indicate a=20
> > function is not __declspec(nothrow)
> > >=20
> > > A function is declared using exception specification, which=20
> > Visual C++ accepts but does not implement. Code with=20
> > exception specifications that are ignored during compilation=20
> > may need to be recompiled and linked to be reused in future=20
> > versions supporting exception specifications.
> > >=20
> > > --------------------------------------
> > >=20
> > > - Lydia
> > >=20
> > >        =20
> > > _______________________________________________
> > > Insight-developers mailing list
> > > Insight-developers@public.kitware.com
> > > http://public.kitware.com/mailman/listinfo/insight-developers
> > >=20
> > >=20
> >=20
> >=20
> >=20
> >=20
> > _______________________________________________
> > Insight-developers mailing list
> > Insight-developers@public.kitware.com
> > http://public.kitware.com/mailman/listinfo/insight-developers
> >=20
>=20
>=20