summaryrefslogtreecommitdiff
path: root/asn.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-12-02 14:47:31 -0500
committerJeffrey Walton <noloader@gmail.com>2016-12-02 14:47:31 -0500
commit6eb2792bc26aebc83924e7e7be28c0444dca506c (patch)
tree8ae0b3aeaa20bdc828056c7cdb020d741dee093b /asn.h
parent3fff6251aa0342da77185a0df48f3a13ff63d8a9 (diff)
downloadcryptopp-git-6eb2792bc26aebc83924e7e7be28c0444dca506c.tar.gz
Silence select conversion warnings (Issue 340)
Diffstat (limited to 'asn.h')
-rw-r--r--asn.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/asn.h b/asn.h
index 52a184c9..90809ef9 100644
--- a/asn.h
+++ b/asn.h
@@ -13,6 +13,13 @@
#include "queue.h"
#include "misc.h"
+// Issue 340
+#if CRYPTOPP_GCC_DIAGNOSTIC_AVAILABLE
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wconversion"
+# pragma GCC diagnostic ignored "-Wsign-conversion"
+#endif
+
NAMESPACE_BEGIN(CryptoPP)
//! \brief ASN.1 types
@@ -543,4 +550,9 @@ inline ::CryptoPP::OID operator+(const ::CryptoPP::OID &lhs, unsigned long rhs)
NAMESPACE_END
+// Issue 340
+#if CRYPTOPP_GCC_DIAGNOSTIC_AVAILABLE
+# pragma GCC diagnostic pop
+#endif
+
#endif