Skip to content

Commit d16853f

Browse files
committed
stringop-overread warning is since GCC 11
1 parent 3f905c1 commit d16853f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/digest/sha1/sha1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ void SHA1_Update(SHA1_CTX *context, const uint8_t *data, size_t len)
234234
SHA1_Transform(context->state, context->buffer);
235235
for ( ; i + 63 < len; i += 64) {
236236
RB_DIGEST_WARNING_PUSH();
237-
#if defined(__GNUC__) && !defined(__clang__)
237+
#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ >= 11
238238
RB_DIGEST_WARNING_IGNORED(-Wstringop-overread);
239239
#endif
240240
SHA1_Transform(context->state, &data[i]);

0 commit comments

Comments
 (0)