1
0
Fork 0
forked from len0rd/rockbox

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

@ -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