[Insight-developers] VC7 .NET warning

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


Done.

In itkWin32Header.h I am a bit suspicious of

// C++ exception specification ignored except to indicate...
#pragma warning ( disable : 4267 )

since warning number 4267 is non-existent.

Should I take it out?

- Lydia

> -----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 function is =
not __declspec(nothrow)
>=20
> A function is declared using exception specification, which Visual C++ =
accepts but does not implement. Code with exception specifications that =
are ignored during compilation may need to be recompiled and linked to =
be reused in future 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