summaryrefslogtreecommitdiff
path: root/idea.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2015-06-29 02:09:02 -0400
committerJeffrey Walton <noloader@gmail.com>2015-06-29 02:09:02 -0400
commita14a5696e1d0361c370da817ed9531f71e5dc3d2 (patch)
tree72885c8f8ad62630a12e240037c0d0c18b836eac /idea.cpp
parent44a5c2c86042a4c6900b977ed3c3bf722f63d34b (diff)
downloadcryptopp-git-a14a5696e1d0361c370da817ed9531f71e5dc3d2.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
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 793f912f..31619786 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