summaryrefslogtreecommitdiff
path: root/misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'misc.h')
-rw-r--r--misc.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/misc.h b/misc.h
index 1998d0b..009c26e 100644
--- a/misc.h
+++ b/misc.h
@@ -41,6 +41,12 @@
#include <byteswap.h>
#endif
+#if GCC_DIAGNOSTIC_AWARE
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wunused-value"
+# pragma GCC diagnostic ignored "-Wunused-variable"
+#endif
+
NAMESPACE_BEGIN(CryptoPP)
// ************** compile-time assertion ***************
@@ -1279,4 +1285,8 @@ inline T SafeLeftShift(T value)
NAMESPACE_END
+#if GCC_DIAGNOSTIC_AWARE
+# pragma GCC diagnostic pop
+#endif
+
#endif