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:
parent
04181bb832
commit
1922ac1aac
2 changed files with 14 additions and 1 deletions
|
@ -209,7 +209,10 @@ int make_table(int nchar, uchar * bitlen, int tablebits, ushort * table)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* huf.c */
|
/* 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)
|
void read_pt_len(int nn, int nbit, int i_special)
|
||||||
{
|
{
|
||||||
int i, n;
|
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);
|
make_table(nn, pt_len, 8, pt_table);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#if (__GNUC__ == 14)
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
void read_c_len(void)
|
void read_c_len(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -207,6 +207,10 @@ void celt_iir(const opus_val32 *_x,
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (__GNUC__ == 14) // XXX nuke later?
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wstringop-overflow"
|
||||||
|
#endif
|
||||||
int _celt_autocorr(
|
int _celt_autocorr(
|
||||||
const opus_val16 *x, /* in: [0...n-1] samples x */
|
const opus_val16 *x, /* in: [0...n-1] samples x */
|
||||||
opus_val32 *ac, /* out: [0...lag-1] ac values */
|
opus_val32 *ac, /* out: [0...lag-1] ac values */
|
||||||
|
@ -294,3 +298,6 @@ int _celt_autocorr(
|
||||||
RESTORE_STACK;
|
RESTORE_STACK;
|
||||||
return shift;
|
return shift;
|
||||||
}
|
}
|
||||||
|
#if (__GNUC__ == 14)
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue