diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2024-04-25 19:19:38 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-04-25 19:19:38 -0400 |
commit | 1922ac1aacb70b85a809f11a54dafa8059fe230c (patch) | |
tree | 42b305a50d600ecff1d668911da7b51b7ff6e4c8 | |
parent | 04181bb832da8039994c320f6d4c370ceec98673 (diff) | |
download | rockbox-1922ac1aac.tar.gz rockbox-1922ac1aac.zip |
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
-rw-r--r-- | lib/rbcodec/codecs/libayumi/lzh.c | 8 | ||||
-rw-r--r-- | lib/rbcodec/codecs/libopus/celt/celt_lpc.c | 7 |
2 files changed, 14 insertions, 1 deletions
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 |