summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--algparam.h1
-rw-r--r--config.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/algparam.h b/algparam.h
index ea5129c..6a22740 100644
--- a/algparam.h
+++ b/algparam.h
@@ -320,6 +320,7 @@ public:
void MoveInto(void *buffer) const
{
AlgorithmParametersTemplate<T>* p = new(buffer) AlgorithmParametersTemplate<T>(*this);
+ CRYPTOPP_UNUSED(p);
}
protected:
diff --git a/config.h b/config.h
index 4554a1c..77c34b9 100644
--- a/config.h
+++ b/config.h
@@ -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;