From b2ce57084aa59f4cce23dea762c0692973b15c6a Mon Sep 17 00:00:00 2001 From: noloader Date: Fri, 3 Jul 2015 01:18:09 +0000 Subject: Cleared initialization warning related to use of braces git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@567 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- rw.cpp | 2 +- shark.cpp | 4 ++++ sharkbox.cpp | 4 ++++ square.cpp | 4 ++++ tftables.cpp | 4 ++++ 5 files changed, 17 insertions(+), 1 deletion(-) diff --git a/rw.cpp b/rw.cpp index f573fc3..8e07f57 100644 --- a/rw.cpp +++ b/rw.cpp @@ -202,7 +202,7 @@ Integer InvertibleRWFunction::CalculateInverse(RandomNumberGenerator &rng, const Integer re = modn.Square(r); 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; const Integer U = modq.Exponentiate(h, (q+1)/8); diff --git a/shark.cpp b/shark.cpp index 361147e..69e0a69 100644 --- a/shark.cpp +++ b/shark.cpp @@ -6,6 +6,10 @@ #include "modes.h" #include "gf256.h" +#if GCC_DIAGNOSTIC_AWARE +# pragma GCC diagnostic ignored "-Wmissing-braces" +#endif + NAMESPACE_BEGIN(CryptoPP) static word64 SHARKTransform(word64 a) diff --git a/sharkbox.cpp b/sharkbox.cpp index a0ff31f..edd3318 100644 --- a/sharkbox.cpp +++ b/sharkbox.cpp @@ -1,6 +1,10 @@ #include "pch.h" #include "shark.h" +#if GCC_DIAGNOSTIC_AWARE +# pragma GCC diagnostic ignored "-Wmissing-braces" +#endif + NAMESPACE_BEGIN(CryptoPP) const byte SHARK::Enc::sbox[256] = { diff --git a/square.cpp b/square.cpp index 00e6bdd..7513be7 100644 --- a/square.cpp +++ b/square.cpp @@ -6,6 +6,10 @@ #include "misc.h" #include "gf256.h" +#if GCC_DIAGNOSTIC_AWARE +# pragma GCC diagnostic ignored "-Wmissing-braces" +#endif + NAMESPACE_BEGIN(CryptoPP) // apply theta to a roundkey diff --git a/tftables.cpp b/tftables.cpp index dc654cf..974d143 100644 --- a/tftables.cpp +++ b/tftables.cpp @@ -3,6 +3,10 @@ #include "pch.h" #include "twofish.h" +#if GCC_DIAGNOSTIC_AWARE +# pragma GCC diagnostic ignored "-Wmissing-braces" +#endif + NAMESPACE_BEGIN(CryptoPP) const byte Twofish::Base::q[2][256] = { -- cgit v1.2.1