diff --git a/integer.cpp b/integer.cpp index ceb06ed5..2f76bea1 100644 --- a/integer.cpp +++ b/integer.cpp @@ -10,8 +10,10 @@ #if CRYPTOPP_GCC_DIAGNOSTIC_AVAILABLE # pragma GCC diagnostic ignored "-Wunused" +#if !defined(__clang__) # pragma GCC diagnostic ignored "-Wunused-but-set-variable" #endif +#endif // Issue 340 #if CRYPTOPP_GCC_DIAGNOSTIC_AVAILABLE