summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornoloader <noloader@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2015-07-03 01:18:09 +0000
committernoloader <noloader@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2015-07-03 01:18:09 +0000
commitb2ce57084aa59f4cce23dea762c0692973b15c6a (patch)
tree1099332699bcf38e740dea3ed480209d4859a97f
parentaa73b950fa096ac0e34a38976d2c4956c7f7d8e1 (diff)
downloadcryptopp-b2ce57084aa59f4cce23dea762c0692973b15c6a.tar.gz
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-r--r--rw.cpp2
-rw-r--r--shark.cpp4
-rw-r--r--sharkbox.cpp4
-rw-r--r--square.cpp4
-rw-r--r--tftables.cpp4
5 files changed, 17 insertions, 1 deletions
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] = {