misc: Fix more build warnings uncovered with GCC15 and -Wunused-const-variable

Change-Id: I43f5d03d8496b2ac8b30df30b14d1c6e816ef0e2
This commit is contained in:
Solomon Peachy 2025-04-21 21:53:56 -04:00
parent 9d4632b0c3
commit 3b974e791a
4 changed files with 8 additions and 4 deletions

View file

@ -209,7 +209,7 @@ int make_table(int nchar, uchar * bitlen, int tablebits, ushort * table)
}
/* huf.c */
#if (__GNUC__ == 14) // XXX nuke later?
#if (__GNUC__ >= 14) // XXX nuke later?
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstringop-overflow"
#endif

View file

@ -207,7 +207,7 @@ void celt_iir(const opus_val32 *_x,
#endif
}
#if (__GNUC__ == 14) // XXX nuke later?
#if (__GNUC__ >= 14) // XXX nuke later?
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif