diff options
author | Jeffrey Walton <noloader@gmail.com> | 2015-07-23 20:14:15 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2015-07-23 20:14:15 -0400 |
commit | 20e652abbb934fdee6a5ecf79fe1b036691c60a8 (patch) | |
tree | ad0779f15259a758b9acb32791d4cda83743e72f /gf2_32.h | |
parent | db40142116bb233e7ee75d8acfaf561f5b41cca5 (diff) | |
download | cryptopp-git-20e652abbb934fdee6a5ecf79fe1b036691c60a8.tar.gz |
Cleared "unused parameter" warning with GCC 5.1 and -Wextra
Diffstat (limited to 'gf2_32.h')
-rw-r--r-- | gf2_32.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -2,6 +2,7 @@ #define CRYPTOPP_GF2_32_H #include "cryptlib.h" +#include "misc.h" NAMESPACE_BEGIN(CryptoPP) @@ -15,7 +16,7 @@ public: GF2_32(word32 modulus=0x0000008D) : m_modulus(modulus) {} Element RandomElement(RandomNumberGenerator &rng, int ignored = 0) const - {return rng.GenerateWord32();} + {CRYPTOPP_UNUSED(ignored);return rng.GenerateWord32();} bool Equal(Element a, Element b) const {return a==b;} @@ -39,7 +40,7 @@ public: {return a^=b;} Element Double(Element a) const - {return 0;} + {CRYPTOPP_UNUSED(a);return 0;} Element MultiplicativeIdentity() const {return 1;} |