Temporary fix for build warnings under GCC 14.0.1

...Both appear to be false positives, and will hopefully be resolved
in a later GCC point release.  I will periodically revisit this.

Change-Id: I7388932f5be052d39dd8c4195b438bf275dd72d9
This commit is contained in:
Solomon Peachy 2024-04-25 19:19:38 -04:00
parent 04181bb832
commit 1922ac1aac
2 changed files with 14 additions and 1 deletions

View file

@ -209,7 +209,10 @@ int make_table(int nchar, uchar * bitlen, int tablebits, ushort * table)
}
/* huf.c */
#if (__GNUC__ == 14) // XXX nuke later?
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstringop-overflow"
#endif
void read_pt_len(int nn, int nbit, int i_special)
{
int i, n;
@ -247,6 +250,9 @@ void read_pt_len(int nn, int nbit, int i_special)
make_table(nn, pt_len, 8, pt_table);
}
}
#if (__GNUC__ == 14)
#pragma GCC diagnostic pop
#endif
void read_c_len(void)
{

View file

@ -207,6 +207,10 @@ void celt_iir(const opus_val32 *_x,
#endif
}
#if (__GNUC__ == 14) // XXX nuke later?
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstringop-overflow"
#endif
int _celt_autocorr(
const opus_val16 *x, /* in: [0...n-1] samples x */
opus_val32 *ac, /* out: [0...lag-1] ac values */
@ -294,3 +298,6 @@ int _celt_autocorr(
RESTORE_STACK;
return shift;
}
#if (__GNUC__ == 14)
#pragma GCC diagnostic pop
#endif