forked from len0rd/rockbox
misc: Clean up a pile of -Wunused-const-variable warnings
And re-enable the warning (applies to GCC 6+) Change-Id: I7aa679ec65707db12de83c0433966b3821d07087
This commit is contained in:
parent
c7eda36341
commit
9d4632b0c3
11 changed files with 29 additions and 17 deletions
|
@ -116,11 +116,13 @@ int sb_decoder_ctl(void *state, int request, void *ptr)
|
|||
|
||||
#ifdef FIXED_POINT
|
||||
static const spx_word16_t gc_quant_bound[16] ICONST_ATTR = {125, 164, 215, 282, 370, 484, 635, 832, 1090, 1428, 1871, 2452, 3213, 4210, 5516, 7228};
|
||||
#ifndef SPEEX_DISABLE_ENCODER
|
||||
static const spx_word16_t fold_quant_bound[32] ICONST_ATTR = {
|
||||
39, 44, 50, 57, 64, 73, 83, 94,
|
||||
106, 120, 136, 154, 175, 198, 225, 255,
|
||||
288, 327, 370, 420, 476, 539, 611, 692,
|
||||
784, 889, 1007, 1141, 1293, 1465, 1660, 1881};
|
||||
#endif
|
||||
#define LSP_MARGIN 410
|
||||
#define LSP_DELTA1 6553
|
||||
#define LSP_DELTA2 1638
|
||||
|
@ -188,7 +190,7 @@ static const float h0[64] = {
|
|||
extern const spx_word16_t lag_window[];
|
||||
extern const spx_word16_t lpc_window[];
|
||||
|
||||
#ifndef SPEEX_DISABLE_ENCODER
|
||||
#ifndef SPEEX_DISABLE_ENCODER
|
||||
void *sb_encoder_init(const SpeexMode *m)
|
||||
{
|
||||
int i;
|
||||
|
|
|
@ -58,12 +58,14 @@ static const float e_ratio_quant[4] = {.25f, .315f, .397f, .5f};
|
|||
static const float e_ratio_quant_bounds[3] = {0.2825f, 0.356f, 0.4485f};
|
||||
#else
|
||||
static const spx_word16_t e_ratio_quant[4] = {8192, 10332, 13009, 16384};
|
||||
#ifndef SPEEX_DISABLE_ENCODER
|
||||
static const spx_word16_t e_ratio_quant_bounds[3] = {9257, 11665, 14696};
|
||||
static const spx_word16_t balance_bounds[31] = {18, 23, 30, 38, 49, 63, 81, 104,
|
||||
134, 172, 221, 284, 364, 468, 600, 771,
|
||||
990, 1271, 1632, 2096, 2691, 3455, 4436, 5696,
|
||||
7314, 9392, 12059, 15484, 19882, 25529, 32766};
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* This is an ugly compatibility hack that properly resets the stereo state
|
||||
In case it it compiled in fixed-point, but initialised with the deprecated
|
||||
|
|
|
@ -117,6 +117,7 @@ static inline ogg_int32_t toBARK(int n){
|
|||
}
|
||||
}
|
||||
|
||||
#ifndef _V_LSP_MATH_ASM
|
||||
static const unsigned char MLOOP_1[64] ={
|
||||
0,10,11,11, 12,12,12,12, 13,13,13,13, 13,13,13,13,
|
||||
14,14,14,14, 14,14,14,14, 14,14,14,14, 14,14,14,14,
|
||||
|
@ -132,6 +133,7 @@ static const unsigned char MLOOP_2[64] ={
|
|||
};
|
||||
|
||||
static const unsigned char MLOOP_3[8] ={0,1,2,2,3,3,3,3};
|
||||
#endif
|
||||
|
||||
static void vorbis_lsp_to_curve(ogg_int32_t *curve,int *map,int n,int ln,
|
||||
ogg_int32_t *lsp,int m,
|
||||
|
|
|
@ -50,6 +50,7 @@ struct asf_object_s {
|
|||
};
|
||||
typedef struct asf_object_s asf_object_t;
|
||||
|
||||
#if 0
|
||||
static const guid_t asf_guid_null =
|
||||
{0x00000000, 0x0000, 0x0000, {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}};
|
||||
|
||||
|
@ -58,11 +59,12 @@ static const guid_t asf_guid_null =
|
|||
static const guid_t asf_guid_header =
|
||||
{0x75B22630, 0x668E, 0x11CF, {0xA6, 0xD9, 0x00, 0xAA, 0x00, 0x62, 0xCE, 0x6C}};
|
||||
|
||||
static const guid_t asf_guid_data =
|
||||
{0x75B22636, 0x668E, 0x11CF, {0xA6, 0xD9, 0x00, 0xAA, 0x00, 0x62, 0xCE, 0x6C}};
|
||||
|
||||
static const guid_t asf_guid_index =
|
||||
{0x33000890, 0xE5B1, 0x11CF, {0x89, 0xF4, 0x00, 0xA0, 0xC9, 0x03, 0x49, 0xCB}};
|
||||
#endif
|
||||
|
||||
static const guid_t asf_guid_data =
|
||||
{0x75B22636, 0x668E, 0x11CF, {0xA6, 0xD9, 0x00, 0xAA, 0x00, 0x62, 0xCE, 0x6C}};
|
||||
|
||||
/* header level object guids */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue