summaryrefslogtreecommitdiff
path: root/cryptlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'cryptlib.h')
-rw-r--r--cryptlib.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/cryptlib.h b/cryptlib.h
index 89d52bab..93a2015a 100644
--- a/cryptlib.h
+++ b/cryptlib.h
@@ -82,6 +82,16 @@ and getting me started with this manual.
#include "config.h"
#include "stdcpp.h"
+// We can't include "misc.h" due to circular references....
+#define GCC_DIAGNOSTIC_AWARE_X ((__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)) || defined(__clang__))
+
+#if GCC_DIAGNOSTIC_AWARE_X
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wunused-value"
+# pragma GCC diagnostic ignored "-Wunused-variable"
+# pragma GCC diagnostic ignored "-Wunused-parameter"
+#endif
+
NAMESPACE_BEGIN(CryptoPP)
// forward declarations
@@ -1673,4 +1683,8 @@ typedef AuthenticatedKeyAgreementDomain PK_AuthenticatedKeyAgreementDomain;
NAMESPACE_END
+#if GCC_DIAGNOSTIC_AWARE_X
+# pragma GCC diagnostic pop
+#endif
+
#endif