forked from len0rd/rockbox
Fix a bunch of 'variable set but not used' warnings reported from GCC 4.6.0.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29841 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ab99e941db
commit
67f215032d
18 changed files with 54 additions and 55 deletions
|
|
@ -522,7 +522,6 @@ menu_t SaveDef =
|
|||
void M_ReadSaveStrings(void)
|
||||
{
|
||||
int handle;
|
||||
int count;
|
||||
int i;
|
||||
char name[256];
|
||||
|
||||
|
|
@ -540,7 +539,7 @@ void M_ReadSaveStrings(void)
|
|||
LoadMenu[i].status = 0;
|
||||
continue;
|
||||
}
|
||||
count = read (handle, &savegamestrings[i], SAVESTRINGSIZE);
|
||||
read (handle, &savegamestrings[i], SAVESTRINGSIZE);
|
||||
close (handle);
|
||||
LoadMenu[i].status = 1;
|
||||
}
|
||||
|
|
@ -1027,8 +1026,7 @@ void M_Options(int choice)
|
|||
//
|
||||
void M_ChangeMessages(int choice)
|
||||
{
|
||||
// warning: unused parameter `int choice'
|
||||
choice = 0;
|
||||
(void)choice;
|
||||
showMessages = 1 - showMessages;
|
||||
|
||||
if (!showMessages)
|
||||
|
|
@ -1059,7 +1057,7 @@ void M_EndGameResponse(int ch)
|
|||
|
||||
void M_EndGame(int choice)
|
||||
{
|
||||
choice = 0;
|
||||
(void)choice;
|
||||
if (!usergame)
|
||||
{
|
||||
S_StartSound(NULL,sfx_oof);
|
||||
|
|
@ -1083,19 +1081,19 @@ void M_EndGame(int choice)
|
|||
//
|
||||
void M_ReadThis(int choice)
|
||||
{
|
||||
choice = 0;
|
||||
(void)choice;
|
||||
M_SetupNextMenu(&ReadDef1);
|
||||
}
|
||||
|
||||
void M_ReadThis2(int choice)
|
||||
{
|
||||
choice = 0;
|
||||
(void)choice;
|
||||
M_SetupNextMenu(&ReadDef2);
|
||||
}
|
||||
|
||||
void M_FinishReadThis(int choice)
|
||||
{
|
||||
choice = 0;
|
||||
(void)choice;
|
||||
M_SetupNextMenu(&MainDef);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue