diff options
author | Jeffrey Walton <noloader@gmail.com> | 2015-07-23 19:30:14 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2015-07-23 19:30:14 -0400 |
commit | 35b213c08576dd77c898f637f64089f36c930be2 (patch) | |
tree | c76a6ac694bee72de7282eea769ed17306dcce97 /algebra.h | |
parent | e87857f67de99e53d1fc9d00a794ea491eeadfdf (diff) | |
download | cryptopp-git-35b213c08576dd77c898f637f64089f36c930be2.tar.gz |
Cleared "unused parameter" warning with GCC 5.1 and -Wextra
Diffstat (limited to 'algebra.h')
-rw-r--r-- | algebra.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |