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 /seckey.h | |
parent | 3fff6251aa0342da77185a0df48f3a13ff63d8a9 (diff) | |
download | cryptopp-git-6eb2792bc26aebc83924e7e7be28c0444dca506c.tar.gz |
Silence select conversion warnings (Issue 340)
Diffstat (limited to 'seckey.h')
-rw-r--r-- | seckey.h | 19 |
1 files changed, 15 insertions, 4 deletions
@@ -1,21 +1,27 @@ // seckey.h - written and placed in the public domain by Wei Dai
-//! \file
+//! \file seckey.h
//! \brief Classes and functions for implementing secret key algorithms.
#ifndef CRYPTOPP_SECKEY_H
#define CRYPTOPP_SECKEY_H
#include "config.h"
+#include "cryptlib.h"
+#include "misc.h"
+#include "simple.h"
#if CRYPTOPP_MSC_VERSION
# pragma warning(push)
# pragma warning(disable: 4189)
#endif
-#include "cryptlib.h"
-#include "misc.h"
-#include "simple.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)
@@ -442,4 +448,9 @@ NAMESPACE_END # pragma warning(pop)
#endif
+// Issue 340
+#if CRYPTOPP_GCC_DIAGNOSTIC_AVAILABLE
+# pragma GCC diagnostic pop
+#endif
+
#endif
|