diff --git a/src/hiredis/sds.c b/src/hiredis/sds.c index 49d2096b..245787c8 100644 --- a/src/hiredis/sds.c +++ b/src/hiredis/sds.c @@ -30,6 +30,11 @@ * POSSIBILITY OF SUCH DAMAGE. */ +#if defined(__GNUC__) && !defined(__clang__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstringop-overflow" +#endif + #include "fmacros.h" #include #include @@ -1287,3 +1292,7 @@ int main(void) { return sdsTest(); } #endif + +#if defined(__GNUC__) && !defined(__clang__) +#pragma GCC diagnostic pop +#endif