1
0
Fork 0
forked from len0rd/rockbox

misc: Fix two more -Wunused-const-variable warnings

Only exposed in bootloader builds

Change-Id: Iee277112c027b28eccd0432c8b231a4084450dbe
This commit is contained in:
Solomon Peachy 2025-04-29 20:55:29 -04:00
parent 6ae4933d6e
commit e4a16c23ee
2 changed files with 4 additions and 1 deletions

View file

@ -46,6 +46,7 @@ struct diac_range
#define DIAC_RANGE_ENTRY(first_diac, first_non_diac, is_rtl) \
{ first_diac, ((first_non_diac - first_diac) & DIAC_CNT) | (is_rtl * DIAC_RTL)}
#ifndef BOOTLOADER
/* Sorted by Unicode value */
static const struct diac_range diac_ranges[] =
{
@ -194,7 +195,7 @@ static const struct diac_range diac_ranges[] =
};
#define MRU_MAX_LEN 32
#ifndef BOOTLOADER
bool is_diacritic(const unsigned short char_code, bool *is_rtl)
{
static uint8_t mru_len = 0;

View file

@ -41,11 +41,13 @@
#endif
#include "scroll_engine.h"
#if !defined(BOOTLOADER)
static const char scroll_tick_table[18] = {
/* Hz values [f(x)=100.8/(x+.048)]:
1, 1.25, 1.55, 2, 2.5, 3.12, 4, 5, 6.25, 8.33, 10, 12.5, 16.7, 20, 25, 33, 49.2, 96.2 */
100, 80, 64, 50, 40, 32, 25, 20, 16, 12, 10, 8, 6, 5, 4, 3, 2, 1
};
#endif
#include "drivers/lcd-scroll.c"