From fd7959295b8abdd5bf744312cb2fe6278401a184 Mon Sep 17 00:00:00 2001 From: noloader Date: Mon, 29 Jun 2015 06:44:27 +0000 Subject: Added GCC_DIAGNOSTIC_AWARE to help suppress some warnings on contemporary compilers. The macro was needed to help with managing old compilers, like GCC 4.2.1, present on OpenBSD git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@555 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- algparam.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'algparam.h') diff --git a/algparam.h b/algparam.h index 6a22740..44e0ff3 100644 --- a/algparam.h +++ b/algparam.h @@ -5,6 +5,12 @@ #include "smartptr.h" #include "secblock.h" +#if GCC_DIAGNOSTIC_AWARE +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wunused-value" +# pragma GCC diagnostic ignored "-Wunused-variable" +#endif + NAMESPACE_BEGIN(CryptoPP) //! used to pass byte array input as part of a NameValuePairs object @@ -396,4 +402,8 @@ AlgorithmParameters MakeParameters(const char *name, const T &value, bool throwI NAMESPACE_END +#if GCC_DIAGNOSTIC_AWARE +# pragma GCC diagnostic pop +#endif + #endif -- cgit v1.2.1