Add CRYPTOPP_UNUSED to help supress unused variable warnings. Applied to AlgorithmParametersTemplate because its use is nearly ubiquitous

This commit is contained in:
Jeffrey Walton 2015-06-04 23:24:15 -04:00
parent 54d72d091e
commit 5f25c73635
2 changed files with 3 additions and 0 deletions

View File

@ -320,6 +320,7 @@ public:
void MoveInto(void *buffer) const
{
AlgorithmParametersTemplate<T>* p = new(buffer) AlgorithmParametersTemplate<T>(*this);
CRYPTOPP_UNUSED(p);
}
protected:

View File

@ -94,6 +94,8 @@
typedef unsigned char byte; // put in global namespace to avoid ambiguity with other byte typedefs
#define CRYPTOPP_UNUSED(x) ((void)x); // cast to void. Portable way to suppress unused variable
NAMESPACE_BEGIN(CryptoPP)
typedef unsigned short word16;