From 875852fcbc8a099ff6b793230a6236fbfa04b52b Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Wed, 14 Sep 2016 20:50:41 -0400 Subject: [PATCH] Cleared SunCC warning "DL_ElgamalLikeSignatureAlgorithm is expected to return a value" --- pubkey.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pubkey.h b/pubkey.h index 183a7430..7f4cbb3c 100644 --- a/pubkey.h +++ b/pubkey.h @@ -55,6 +55,12 @@ // VC60 workaround: this macro is defined in shlobj.h and conflicts with a template parameter used in this file #undef INTERFACE +#if defined(__SUNPRO_CC) +# define MAYBE_RETURN_FOR_SOLARIS(x) return x +#else +# define MAYBE_RETURN_FOR_SOLARIS(x) CRYPTOPP_UNUSED(x) +#endif + NAMESPACE_BEGIN(CryptoPP) //! \class TrapdoorFunctionBounds @@ -1308,6 +1314,7 @@ public: { CRYPTOPP_UNUSED(params); CRYPTOPP_UNUSED(publicKey); CRYPTOPP_UNUSED(r); CRYPTOPP_UNUSED(s); throw NotImplemented("DL_ElgamalLikeSignatureAlgorithm: this signature scheme does not support message recovery"); + MAYBE_RETURN_FOR_SOLARIS(Integer::Zero()); } virtual size_t RLen(const DL_GroupParameters ¶ms) const {return params.GetSubgroupOrder().ByteCount();}