[Botan-devel] Compiler warnings in VS2005

Boris boriss at web.de
Sun Sep 23 14:07:26 EDT 2007


Hi Jack, 

I'm a new Botan user (found it through monotone) and want to thank you first
for this nice library! Currently I'm playing a bit with public key functions
in Visual Studio 2005. While everything works fine so far I see quite a lot
of warnings in VS2005: 

C:\Botan\botan/base.h(29) : warning C4290: C++ exception specification
ignored except to indicate a function is not __declspec(nothrow)
C:\Botan\botan/base.h(30) : warning C4290: C++ exception specification
ignored except to indicate a function is not __declspec(nothrow)
C:\Botan\botan/base.h(158) : warning C4290: C++ exception specification
ignored except to indicate a function is not __declspec(nothrow)
C:\Botan\botan/if_algo.h(54) : warning C4250: 'Botan::IF_Scheme_PrivateKey'
: inherits
'Botan::IF_Scheme_PublicKey::Botan::IF_Scheme_PublicKey::max_input_bits' via
dominance
        C:\Botan\botan/if_algo.h(26) : see declaration of
'Botan::IF_Scheme_PublicKey::max_input_bits'
... 
C:\Botan\botan/rsa.h(30) : warning C4250: 'Botan::RSA_PublicKey' : inherits
'Botan::IF_Scheme_PublicKey::Botan::IF_Scheme_PublicKey::check_key' via
dominance
        C:\Botan\botan/if_algo.h(21) : see declaration of
'Botan::IF_Scheme_PublicKey::check_key'
... 
C:\Botan\botan/rsa.h(52) : warning C4250: 'Botan::RSA_PrivateKey' : inherits
'Botan::RSA_PublicKey::Botan::RSA_PublicKey::algo_name' via dominance
        C:\Botan\botan/rsa.h(21) : see declaration of
'Botan::RSA_PublicKey::algo_name'
... 

Not that they cause a problem. But is there any interest to get rid of the
warnings? Of course the warnings depend on the compiler used. But given that
VS2005 is quite a popular platform Botan might also benefit if it can be
compiled without warnings out of the box? Or is the Botan recommendation to
fix warnings yourself using compiler switches or pragmas? 

Boris 




More information about the botan-devel mailing list