[Botan-devel] Question with loading multiple public keys from a
file
Jack Lloyd
lloyd at randombit.net
Mon Apr 23 10:31:46 EDT 2007
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
More information about the botan-devel
mailing list