Cleared "unused parameter" warning with GCC 5.1 and -Wextra
parent
6541c7ac72
commit
1160f4163a
9
gf2n.h
9
gf2n.h
|
|
@ -5,8 +5,9 @@
|
||||||
|
|
||||||
#include "cryptlib.h"
|
#include "cryptlib.h"
|
||||||
#include "secblock.h"
|
#include "secblock.h"
|
||||||
#include "misc.h"
|
|
||||||
#include "algebra.h"
|
#include "algebra.h"
|
||||||
|
#include "misc.h"
|
||||||
|
#include "trap.h"
|
||||||
|
|
||||||
#include <iosfwd>
|
#include <iosfwd>
|
||||||
|
|
||||||
|
|
@ -285,16 +286,16 @@ public:
|
||||||
|
|
||||||
virtual GF2NP * Clone() const {return new GF2NP(*this);}
|
virtual GF2NP * Clone() const {return new GF2NP(*this);}
|
||||||
virtual void DEREncode(BufferedTransformation &bt) const
|
virtual void DEREncode(BufferedTransformation &bt) const
|
||||||
{assert(false);} // no ASN.1 syntax yet for general polynomial basis
|
{CRYPTOPP_UNUSED(bt);CRYPTOPP_ASSERT(false);} // no ASN.1 syntax yet for general polynomial basis
|
||||||
|
|
||||||
void DEREncodeElement(BufferedTransformation &out, const Element &a) const;
|
void DEREncodeElement(BufferedTransformation &out, const Element &a) const;
|
||||||
void BERDecodeElement(BufferedTransformation &in, Element &a) const;
|
void BERDecodeElement(BufferedTransformation &in, Element &a) const;
|
||||||
|
|
||||||
bool Equal(const Element &a, const Element &b) const
|
bool Equal(const Element &a, const Element &b) const
|
||||||
{assert(a.Degree() < m_modulus.Degree() && b.Degree() < m_modulus.Degree()); return a.Equals(b);}
|
{CRYPTOPP_ASSERT(a.Degree() < m_modulus.Degree() && b.Degree() < m_modulus.Degree()); return a.Equals(b);}
|
||||||
|
|
||||||
bool IsUnit(const Element &a) const
|
bool IsUnit(const Element &a) const
|
||||||
{assert(a.Degree() < m_modulus.Degree()); return !!a;}
|
{CRYPTOPP_ASSERT(a.Degree() < m_modulus.Degree()); return !!a;}
|
||||||
|
|
||||||
unsigned int MaxElementBitLength() const
|
unsigned int MaxElementBitLength() const
|
||||||
{return m;}
|
{return m;}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue