INTEGER: ignore warning for all GCC versions

The warning appears again with GCC 12 in Debian 12, causing the build to
fail with --enable-werror. GCC 11 did not complain about it. As there
are numerous bug reports about this in GCC's bug tracker, just disable
it for all GCC versions.

Related: adaa1c62e1
Related: OS#6057
Change-Id: I48d9d423df47f23a0ef3ea727a40b53d70aec48b
This commit is contained in:
Oliver Smith 2023-07-13 13:36:30 +02:00
parent 3e483e5950
commit a1a8861cdf
1 changed files with 0 additions and 8 deletions

View File

@ -1336,16 +1336,12 @@ asn_int642INTEGER(INTEGER_t *st, int64_t value) {
}
break;
}
#if __GNUC__ == 10
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Warray-bounds"
#endif
/* Copy the integer body */
for(pstart = p, bp = buf, pend1 += add; p != pend1; p += add)
*bp++ = *p;
#if __GNUC__ == 10
#pragma GCC diagnostic pop
#endif
if(st->buf) FREEMEM(st->buf);
st->buf = buf;
@ -1398,16 +1394,12 @@ asn_long2INTEGER(INTEGER_t *st, long value) {
}
break;
}
#if __GNUC__ == 10
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Warray-bounds"
#endif
/* Copy the integer body */
for(pstart = p, bp = buf, pend1 += add; p != pend1; p += add)
*bp++ = *p;
#if __GNUC__ == 10
#pragma GCC diagnostic pop
#endif
if(st->buf) FREEMEM(st->buf);
st->buf = buf;