[ruby/digest] stringop-overread warning is since GCC 11

https://github.com/ruby/digest/commit/d16853fe8c
This commit is contained in:
Nobuyoshi Nakada 2025-05-05 17:44:53 +09:00 committed by git
parent bbf1130f91
commit 5b1a61e29c

View File

@ -234,7 +234,7 @@ void SHA1_Update(SHA1_CTX *context, const uint8_t *data, size_t len)
SHA1_Transform(context->state, context->buffer);
for ( ; i + 63 < len; i += 64) {
RB_DIGEST_WARNING_PUSH();
#if defined(__GNUC__) && !defined(__clang__)
#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ >= 11
RB_DIGEST_WARNING_IGNORED(-Wstringop-overread);
#endif
SHA1_Transform(context->state, &data[i]);