Add CRYPTOPP_UNUSED to help supress unused variable warnings. Applied to AlgorithmParametersTemplate because its use is nearly ubiquitous
parent
54d72d091e
commit
5f25c73635
|
|
@ -320,6 +320,7 @@ public:
|
||||||
void MoveInto(void *buffer) const
|
void MoveInto(void *buffer) const
|
||||||
{
|
{
|
||||||
AlgorithmParametersTemplate<T>* p = new(buffer) AlgorithmParametersTemplate<T>(*this);
|
AlgorithmParametersTemplate<T>* p = new(buffer) AlgorithmParametersTemplate<T>(*this);
|
||||||
|
CRYPTOPP_UNUSED(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
|
||||||
2
config.h
2
config.h
|
|
@ -94,6 +94,8 @@
|
||||||
|
|
||||||
typedef unsigned char byte; // put in global namespace to avoid ambiguity with other byte typedefs
|
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)
|
NAMESPACE_BEGIN(CryptoPP)
|
||||||
|
|
||||||
typedef unsigned short word16;
|
typedef unsigned short word16;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue