summaryrefslogtreecommitdiff
path: root/apps/plugins/doom/m_menu.c
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-05-08 21:06:38 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-05-08 21:06:38 +0000
commit67f215032d8bab2571aad2da739d72512c064ca4 (patch)
treeb39689b5947f0522ca16fd79900906981951cd8f /apps/plugins/doom/m_menu.c
parentab99e941dbf0481a1c0abb3767a745d23b53bfd2 (diff)
downloadrockbox-67f215032d8bab2571aad2da739d72512c064ca4.tar.gz
rockbox-67f215032d8bab2571aad2da739d72512c064ca4.zip
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
Diffstat (limited to 'apps/plugins/doom/m_menu.c')
-rw-r--r--apps/plugins/doom/m_menu.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/apps/plugins/doom/m_menu.c b/apps/plugins/doom/m_menu.c
index b0b0f9fff8..aa82959aaf 100644
--- a/apps/plugins/doom/m_menu.c
+++ b/apps/plugins/doom/m_menu.c
@@ -522,7 +522,6 @@ menu_t SaveDef =
522void M_ReadSaveStrings(void) 522void M_ReadSaveStrings(void)
523{ 523{
524 int handle; 524 int handle;
525 int count;
526 int i; 525 int i;
527 char name[256]; 526 char name[256];
528 527
@@ -540,7 +539,7 @@ void M_ReadSaveStrings(void)
540 LoadMenu[i].status = 0; 539 LoadMenu[i].status = 0;
541 continue; 540 continue;
542 } 541 }
543 count = read (handle, &savegamestrings[i], SAVESTRINGSIZE); 542 read (handle, &savegamestrings[i], SAVESTRINGSIZE);
544 close (handle); 543 close (handle);
545 LoadMenu[i].status = 1; 544 LoadMenu[i].status = 1;
546 } 545 }
@@ -1027,8 +1026,7 @@ void M_Options(int choice)
1027// 1026//
1028void M_ChangeMessages(int choice) 1027void M_ChangeMessages(int choice)
1029{ 1028{
1030 // warning: unused parameter `int choice' 1029 (void)choice;
1031 choice = 0;
1032 showMessages = 1 - showMessages; 1030 showMessages = 1 - showMessages;
1033 1031
1034 if (!showMessages) 1032 if (!showMessages)
@@ -1059,7 +1057,7 @@ void M_EndGameResponse(int ch)
1059 1057
1060void M_EndGame(int choice) 1058void M_EndGame(int choice)
1061{ 1059{
1062 choice = 0; 1060 (void)choice;
1063 if (!usergame) 1061 if (!usergame)
1064 { 1062 {
1065 S_StartSound(NULL,sfx_oof); 1063 S_StartSound(NULL,sfx_oof);
@@ -1083,19 +1081,19 @@ void M_EndGame(int choice)
1083// 1081//
1084void M_ReadThis(int choice) 1082void M_ReadThis(int choice)
1085{ 1083{
1086 choice = 0; 1084 (void)choice;
1087 M_SetupNextMenu(&ReadDef1); 1085 M_SetupNextMenu(&ReadDef1);
1088} 1086}
1089 1087
1090void M_ReadThis2(int choice) 1088void M_ReadThis2(int choice)
1091{ 1089{
1092 choice = 0; 1090 (void)choice;
1093 M_SetupNextMenu(&ReadDef2); 1091 M_SetupNextMenu(&ReadDef2);
1094} 1092}
1095 1093
1096void M_FinishReadThis(int choice) 1094void M_FinishReadThis(int choice)
1097{ 1095{
1098 choice = 0; 1096 (void)choice;
1099 M_SetupNextMenu(&MainDef); 1097 M_SetupNextMenu(&MainDef);
1100} 1098}
1101 1099