mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
Fix more warnings.
Change-Id: Ib3a9fc622a46b1fc72e94dcbc6d29d2e430cd81b
This commit is contained in:
parent
431caa4311
commit
b94db707fb
11 changed files with 41 additions and 19 deletions
|
|
@ -97,9 +97,11 @@ int button_read_device(void)
|
|||
int buttons = int_btn;
|
||||
unsigned char state;
|
||||
static bool hold_button = false;
|
||||
#ifndef BOOTLOADER
|
||||
bool hold_button_old;
|
||||
|
||||
hold_button_old = hold_button;
|
||||
#endif
|
||||
hold_button = button_hold();
|
||||
|
||||
#ifndef BOOTLOADER
|
||||
|
|
|
|||
|
|
@ -103,10 +103,14 @@ int button_read_device(void)
|
|||
int btn = BUTTON_NONE;
|
||||
#endif /* (SAMSUNG_YH920) || (SAMSUNG_YH925) */
|
||||
static bool hold_button = false;
|
||||
#ifndef BOOTLOADER
|
||||
bool hold_button_old;
|
||||
#endif
|
||||
|
||||
/* Hold */
|
||||
#ifndef BOOTLOADER
|
||||
hold_button_old = hold_button;
|
||||
#endif
|
||||
hold_button = button_hold();
|
||||
|
||||
#ifndef BOOTLOADER
|
||||
|
|
|
|||
|
|
@ -352,12 +352,16 @@ static struct queue_head qh_array[USB_NUM_ENDPOINTS*2]
|
|||
static struct semaphore transfer_completion_signal[USB_NUM_ENDPOINTS*2]
|
||||
SHAREDBSS_ATTR;
|
||||
|
||||
static const unsigned int pipe2mask[] = {
|
||||
static const unsigned int pipe2mask[USB_NUM_ENDPOINTS*2] = {
|
||||
0x01, 0x010000,
|
||||
0x02, 0x020000,
|
||||
0x04, 0x040000,
|
||||
#if USB_NUM_ENDPOINTS > 3
|
||||
0x08, 0x080000,
|
||||
#endif
|
||||
#if USB_NUM_ENDPOINTS > 4
|
||||
0x10, 0x100000,
|
||||
#endif
|
||||
};
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue