Clear GCC -Wstrict-overflow warning
This is a false positive when "T=int" or "T=long". "value" is reduced by division so it converges to 0. It is never less than 0.pull/546/head
parent
1b36c4e767
commit
2816efe188
1
misc.h
1
misc.h
|
|
@ -524,6 +524,7 @@ template <class T> inline const T& STDMAX(const T& a, const T& b)
|
||||||
#if CRYPTOPP_GCC_DIAGNOSTIC_AVAILABLE
|
#if CRYPTOPP_GCC_DIAGNOSTIC_AVAILABLE
|
||||||
# pragma GCC diagnostic push
|
# pragma GCC diagnostic push
|
||||||
# pragma GCC diagnostic ignored "-Wsign-compare"
|
# pragma GCC diagnostic ignored "-Wsign-compare"
|
||||||
|
# pragma GCC diagnostic ignored "-Wstrict-overflow"
|
||||||
# if (CRYPTOPP_LLVM_CLANG_VERSION >= 20800) || (CRYPTOPP_APPLE_CLANG_VERSION >= 30000)
|
# if (CRYPTOPP_LLVM_CLANG_VERSION >= 20800) || (CRYPTOPP_APPLE_CLANG_VERSION >= 30000)
|
||||||
# pragma GCC diagnostic ignored "-Wtautological-compare"
|
# pragma GCC diagnostic ignored "-Wtautological-compare"
|
||||||
# elif (CRYPTOPP_GCC_VERSION >= 40300)
|
# elif (CRYPTOPP_GCC_VERSION >= 40300)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue