From 1922ac1aacb70b85a809f11a54dafa8059fe230c Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Thu, 25 Apr 2024 19:19:38 -0400 Subject: 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 --- lib/rbcodec/codecs/libayumi/lzh.c | 8 +++++++- lib/rbcodec/codecs/libopus/celt/celt_lpc.c | 7 +++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/lib/rbcodec/codecs/libayumi/lzh.c b/lib/rbcodec/codecs/libayumi/lzh.c index 786d3bbafe..248a2eddec 100644 --- a/lib/rbcodec/codecs/libayumi/lzh.c +++ b/lib/rbcodec/codecs/libayumi/lzh.c @@ -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) { diff --git a/lib/rbcodec/codecs/libopus/celt/celt_lpc.c b/lib/rbcodec/codecs/libopus/celt/celt_lpc.c index 8ecb693ee9..e925966508 100644 --- a/lib/rbcodec/codecs/libopus/celt/celt_lpc.c +++ b/lib/rbcodec/codecs/libopus/celt/celt_lpc.c @@ -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 -- cgit v1.2.3