summaryrefslogtreecommitdiff
path: root/algebra.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2015-07-23 19:30:14 -0400
committerJeffrey Walton <noloader@gmail.com>2015-07-23 19:30:14 -0400
commit35b213c08576dd77c898f637f64089f36c930be2 (patch)
treec76a6ac694bee72de7282eea769ed17306dcce97 /algebra.h
parente87857f67de99e53d1fc9d00a794ea491eeadfdf (diff)
downloadcryptopp-git-35b213c08576dd77c898f637f64089f36c930be2.tar.gz
Cleared "unused parameter" warning with GCC 5.1 and -Wextra
Diffstat (limited to 'algebra.h')
-rw-r--r--algebra.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/algebra.h b/algebra.h
index 13038bd8..ffa660a7 100644
--- a/algebra.h
+++ b/algebra.h
@@ -2,6 +2,7 @@
#define CRYPTOPP_ALGEBRA_H
#include "config.h"
+#include "misc.h"
NAMESPACE_BEGIN(CryptoPP)
@@ -47,8 +48,8 @@ public:
typedef T Element;
AbstractRing() {m_mg.m_pRing = this;}
- AbstractRing(const AbstractRing &source) {m_mg.m_pRing = this;}
- AbstractRing& operator=(const AbstractRing &source) {return *this;}
+ AbstractRing(const AbstractRing &source) : AbstractGroup<T>(source) {m_mg.m_pRing = this;}
+ AbstractRing& operator=(const AbstractRing &source) {CRYTPOPP_UNUSED(source);return *this;}
virtual bool IsUnit(const Element &a) const =0;
virtual const Element& MultiplicativeIdentity() const =0;