mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
misc: Fix more build warnings uncovered with GCC15 and -Wunused-const-variable
Change-Id: I43f5d03d8496b2ac8b30df30b14d1c6e816ef0e2
This commit is contained in:
parent
9d4632b0c3
commit
3b974e791a
4 changed files with 8 additions and 4 deletions
|
@ -211,7 +211,9 @@ MENUITEM_SETTING(remote_statusbar, &global_settings.remote_statusbar,
|
|||
statusbar_callback_remote);
|
||||
#endif
|
||||
MENUITEM_SETTING(volume_type, &global_settings.volume_type, NULL);
|
||||
#if (CONFIG_BATTERY_MEASURE != 0)
|
||||
MENUITEM_SETTING(battery_display, &global_settings.battery_display, NULL);
|
||||
#endif
|
||||
MAKE_MENU(bars_menu, ID2P(LANG_BARS_MENU), 0, Icon_NOICON,
|
||||
&scrollbar_item, &scrollbar_width, &statusbar,
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
|
|
|
@ -143,6 +143,7 @@ typedef int32_t fixed;
|
|||
#define LCD_FACTOR (fp_div(int2fixed(LCD_WIDTH), int2fixed(100)))
|
||||
/* The threshold for the YIN algorithm */
|
||||
#define DEFAULT_YIN_THRESHOLD 5 /* 0.10 */
|
||||
#ifndef SIMULATOR
|
||||
static const fixed yin_threshold_table[] IDATA_ATTR =
|
||||
{
|
||||
float2fixed(0.01),
|
||||
|
@ -160,6 +161,7 @@ static const fixed yin_threshold_table[] IDATA_ATTR =
|
|||
float2fixed(0.45),
|
||||
float2fixed(0.50),
|
||||
};
|
||||
#endif /* !SIMULATOR */
|
||||
|
||||
/* Structure for the reference frequency (frequency of A)
|
||||
* It's used for scaling the frequency before finding out
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue