summaryrefslogtreecommitdiff
path: root/idea.cpp
diff options
context:
space:
mode:
authornoloader <noloader@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2015-06-29 06:44:27 +0000
committernoloader <noloader@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2015-06-29 06:44:27 +0000
commitfd7959295b8abdd5bf744312cb2fe6278401a184 (patch)
tree391087f1e05121a6c2f64a0ea085459660a26550 /idea.cpp
parentd8e91d1b6e172e8126683ed6688b09e654c24556 (diff)
downloadcryptopp-fd7959295b8abdd5bf744312cb2fe6278401a184.tar.gz
Added GCC_DIAGNOSTIC_AWARE to help suppress some warnings on contemporary compilers. The macro was needed to help with managing old compilers, like GCC 4.2.1, present on OpenBSD
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@555 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'idea.cpp')
-rw-r--r--idea.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/idea.cpp b/idea.cpp
index 793f912..3161978 100644
--- a/idea.cpp
+++ b/idea.cpp
@@ -4,6 +4,11 @@
#include "idea.h"
#include "misc.h"
+#if GCC_DIAGNOSTIC_AWARE
+# pragma GCC diagnostic ignored "-Wunused-value"
+# pragma GCC diagnostic ignored "-Wunused-variable"
+#endif
+
NAMESPACE_BEGIN(CryptoPP)
static const int IDEA_KEYLEN=(6*IDEA::ROUNDS+4); // key schedule length in # of word16s