diff --git a/sha1.c b/sha1.c index c8e23da28f..09cf6e695a 100644 --- a/sha1.c +++ b/sha1.c @@ -17,6 +17,14 @@ A million repetitions of "a" #define SHA1HANDSOFF +#if defined(__clang__) +#elif defined(__GNUC__) +#pragma GCC diagnostic push +/* Ignore the case when SHA1Transform() called with 'char *', that code passed + * buffer of 64 bytes anyway (at least now) */ +#pragma GCC diagnostic ignored "-Wstringop-overread" +#endif + #include #include