diff options
author | Jeffrey Walton <noloader@gmail.com> | 2015-06-29 02:09:02 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2015-06-29 02:09:02 -0400 |
commit | a14a5696e1d0361c370da817ed9531f71e5dc3d2 (patch) | |
tree | 72885c8f8ad62630a12e240037c0d0c18b836eac /basecode.cpp | |
parent | 44a5c2c86042a4c6900b977ed3c3bf722f63d34b (diff) | |
download | cryptopp-git-a14a5696e1d0361c370da817ed9531f71e5dc3d2.tar.gz |
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
Diffstat (limited to 'basecode.cpp')
-rw-r--r-- | basecode.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/basecode.cpp b/basecode.cpp index 0c98b227..62f9ee87 100644 --- a/basecode.cpp +++ b/basecode.cpp @@ -8,6 +8,11 @@ #include "fltrimpl.h" #include <ctype.h> +#if GCC_DIAGNOSTIC_AWARE +# pragma GCC diagnostic ignored "-Wunused-value" +# pragma GCC diagnostic ignored "-Wunused-variable" +#endif + NAMESPACE_BEGIN(CryptoPP) void BaseN_Encoder::IsolatedInitialize(const NameValuePairs ¶meters) |