diff options
author | noloader <noloader@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2015-06-29 06:44:27 +0000 |
---|---|---|
committer | noloader <noloader@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2015-06-29 06:44:27 +0000 |
commit | fd7959295b8abdd5bf744312cb2fe6278401a184 (patch) | |
tree | 391087f1e05121a6c2f64a0ea085459660a26550 /misc.h | |
parent | d8e91d1b6e172e8126683ed6688b09e654c24556 (diff) | |
download | cryptopp-fd7959295b8abdd5bf744312cb2fe6278401a184.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
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@555 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'misc.h')
-rw-r--r-- | misc.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -41,6 +41,12 @@ #include <byteswap.h> #endif +#if GCC_DIAGNOSTIC_AWARE +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wunused-value" +# pragma GCC diagnostic ignored "-Wunused-variable" +#endif + NAMESPACE_BEGIN(CryptoPP) // ************** compile-time assertion *************** @@ -1279,4 +1285,8 @@ inline T SafeLeftShift(T value) NAMESPACE_END +#if GCC_DIAGNOSTIC_AWARE +# pragma GCC diagnostic pop +#endif + #endif |