[Botan-devel] Question with loading multiple public keys from afile

Joel Low joel at joelsplace.sg
Tue Apr 24 05:35:03 EDT 2007


I'm a VC user myself. Yes, even though I feel like screaming at the
developers for their inability to create a compliant compiler at times, I do
understand that it is hard to write a C++ compiler. Thus, even though I set
warning levels to All (/W4, there is a /Wall but that seems excessive) and
Treat Warnings as Errors (/WX), I can suppress the warning. Pass /Wd4290 to
the compiler command line, this way you can still maintain your high warning
level (the diagnostics are helpful most times.)

Joel

> -----Original Message-----
> From: Jack Lloyd [mailto:lloyd at randombit.net]
> Sent: 23 April 2007 10:32 PM
> To: Botan development list
> Subject: Re: [Botan-devel] Question with loading multiple public keys from
> afile
> 
> On Mon, Apr 23, 2007 at 11:08:45PM +0900, Eunsoo Roh wrote:
> 
> > D:\Dev\Botan\include\botan\base.h(29) : warning C4290: C++ exception
> specification ignored except to indicate a function is not
> __declspec(nothrow)D:\Dev\Botan\include\botan\base.h(30) : warning C4290:
> C++ exception specification ignored except to indicate a function is not
> __declspec(nothrow)D:\Dev\Botan\include\botan\base.h(158) : warning C4290:
> C++ exception specification ignored except to indicate a function is not
> __declspec(nothrow)auth.cpp(72) : warning C4541: 'dynamic_cast' used on
> polymorphic type 'Botan::Public_Key' with /GR-; unpredictable behavior may
> resultD:\Dev\Botan\include\botan\base.h(29) : warning C4290: C++ exception
> specification ignored except to indicate a function is not
> __declspec(nothrow)D:\Dev\Botan\include\botan\base.h(30) : warning C4290:
> C++ exception specification ignored except to indicate a function is not
> __declspec(nothrow)D:\Dev\Botan\include\botan\base.h(158) : warning C4290:
> C++ exception specification ignored except to indicate a function is not
> __declspec(nothrow)
> 
> Oh sheesh. Those warnings are useless; they are basically just
> informing you the compiler is ignoring some extra guarantees the code
> makes. They are pretty much harmless, except in the sense that if the
> code ever throws an exception which breaks the throw() specification,
> the runtime will send along the exception rather than calling
> std::unexpected(). But basically the compiler is warning you that it
> is missing a Standard C++ feature. :)
> 
> You can lower the warning level or specifically disable this
> particular warning.
> 
> See also
> http://msdn2.microsoft.com/en-us/library/sa28fef8(VS.80).aspx
> 
> -Jack
> _______________________________________________
> botan-devel mailing list
> botan-devel at randombit.net
> http://www.randombit.net/mailman/listinfo/botan-devel
> 
> 





More information about the botan-devel mailing list