Cleared initialization warning related to use of brackets

reviewable/pr7/r1
Jeffrey Walton 2015-07-02 21:25:39 -04:00
parent b2820c28d3
commit 1f0c35e669
5 changed files with 17 additions and 1 deletions

2
rw.cpp
View File

@ -202,7 +202,7 @@ Integer InvertibleRWFunction::CalculateInverse(RandomNumberGenerator &rng, const
Integer re = modn.Square(r); Integer re = modn.Square(r);
re = modn.Multiply(re, x); // blind re = modn.Multiply(re, x); // blind
const Integer &h = re, &p = m_p, &q = m_q, &n = m_n; const Integer &h = re, &p = m_p, &q = m_q;
Integer e, f; Integer e, f;
const Integer U = modq.Exponentiate(h, (q+1)/8); const Integer U = modq.Exponentiate(h, (q+1)/8);

View File

@ -6,6 +6,10 @@
#include "modes.h" #include "modes.h"
#include "gf256.h" #include "gf256.h"
#if GCC_DIAGNOSTIC_AWARE
# pragma GCC diagnostic ignored "-Wmissing-braces"
#endif
NAMESPACE_BEGIN(CryptoPP) NAMESPACE_BEGIN(CryptoPP)
static word64 SHARKTransform(word64 a) static word64 SHARKTransform(word64 a)

View File

@ -1,6 +1,10 @@
#include "pch.h" #include "pch.h"
#include "shark.h" #include "shark.h"
#if GCC_DIAGNOSTIC_AWARE
# pragma GCC diagnostic ignored "-Wmissing-braces"
#endif
NAMESPACE_BEGIN(CryptoPP) NAMESPACE_BEGIN(CryptoPP)
const byte SHARK::Enc::sbox[256] = { const byte SHARK::Enc::sbox[256] = {

View File

@ -6,6 +6,10 @@
#include "misc.h" #include "misc.h"
#include "gf256.h" #include "gf256.h"
#if GCC_DIAGNOSTIC_AWARE
# pragma GCC diagnostic ignored "-Wmissing-braces"
#endif
NAMESPACE_BEGIN(CryptoPP) NAMESPACE_BEGIN(CryptoPP)
// apply theta to a roundkey // apply theta to a roundkey

View File

@ -3,6 +3,10 @@
#include "pch.h" #include "pch.h"
#include "twofish.h" #include "twofish.h"
#if GCC_DIAGNOSTIC_AWARE
# pragma GCC diagnostic ignored "-Wmissing-braces"
#endif
NAMESPACE_BEGIN(CryptoPP) NAMESPACE_BEGIN(CryptoPP)
const byte Twofish::Base::q[2][256] = { const byte Twofish::Base::q[2][256] = {