diff options
author | Jeffrey Walton <noloader@gmail.com> | 2016-12-02 14:47:31 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2016-12-02 14:47:31 -0500 |
commit | 6eb2792bc26aebc83924e7e7be28c0444dca506c (patch) | |
tree | 8ae0b3aeaa20bdc828056c7cdb020d741dee093b /asn.h | |
parent | 3fff6251aa0342da77185a0df48f3a13ff63d8a9 (diff) | |
download | cryptopp-git-6eb2792bc26aebc83924e7e7be28c0444dca506c.tar.gz |
Silence select conversion warnings (Issue 340)
Diffstat (limited to 'asn.h')
-rw-r--r-- | asn.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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
|