forked from len0rd/rockbox
Fix nearly all residual 'variable set but not used' warnings reported from GCC 4.6.0.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29810 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f7c4594134
commit
27d153db93
11 changed files with 63 additions and 11 deletions
|
@ -641,7 +641,10 @@ static int cb_menu(void)
|
|||
struct cb_command cb_getcommand (void) {
|
||||
static short x = 4 , y = 3 ;
|
||||
short c , r , l;
|
||||
int button, lastbutton = BUTTON_NONE;
|
||||
int button;
|
||||
#if defined(CB_PLAY_PRE) || defined(CB_SELECT_PRE)
|
||||
int lastbutton = BUTTON_NONE;
|
||||
#endif
|
||||
int marked = false , from_marked = false ;
|
||||
short marked_x = 0 , marked_y = 0 ;
|
||||
struct cb_command result = { 0, {0,0,0,0,0}, 0 };
|
||||
|
@ -761,8 +764,10 @@ struct cb_command cb_getcommand (void) {
|
|||
}
|
||||
break;
|
||||
}
|
||||
#if defined(CB_PLAY_PRE) || defined(CB_SELECT_PRE)
|
||||
if (button != BUTTON_NONE)
|
||||
lastbutton = button;
|
||||
#endif
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue