summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.h')
-rw-r--r--config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.h b/config.h
index 77c34b9..41e2242 100644
--- a/config.h
+++ b/config.h
@@ -456,4 +456,8 @@ NAMESPACE_END
#define CRYPTOPP_STATIC_TEMPLATE_CLASS CRYPTOPP_EXTERN_STATIC_TEMPLATE_CLASS
#endif
+// Used to supress some warnings in some header and implmentation files.
+// GCC_DIAGNOSTIC_AWARE is used because some platforms, like OpenBSD, use old compilers.
+#define GCC_DIAGNOSTIC_AWARE (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)) || defined(__clang__)
+
#endif