summaryrefslogtreecommitdiff
path: root/apps/plugins/doom/g_game.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/g_game.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/g_game.c')
-rw-r--r--apps/plugins/doom/g_game.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/apps/plugins/doom/g_game.c b/apps/plugins/doom/g_game.c
index 8aab9fc3cf..e41c84c378 100644
--- a/apps/plugins/doom/g_game.c
+++ b/apps/plugins/doom/g_game.c
@@ -1549,7 +1549,7 @@ static const size_t num_version_headers = sizeof(version_headers) / sizeof(versi
1549 1549
1550void G_DoLoadGame(void) 1550void G_DoLoadGame(void)
1551{ 1551{
1552 int length, i; 1552 int i;
1553 // CPhipps - do savegame filename stuff here 1553 // CPhipps - do savegame filename stuff here
1554 char name[100+1]; // killough 3/22/98 1554 char name[100+1]; // killough 3/22/98
1555 int savegame_compatibility = -1; 1555 int savegame_compatibility = -1;
@@ -1558,7 +1558,7 @@ void G_DoLoadGame(void)
1558 1558
1559 gameaction = ga_nothing; 1559 gameaction = ga_nothing;
1560 1560
1561 length = M_ReadFile(name, &savebuffer); 1561 M_ReadFile(name, &savebuffer);
1562 save_p = savebuffer + SAVESTRINGSIZE; 1562 save_p = savebuffer + SAVESTRINGSIZE;
1563 1563
1564 // CPhipps - read the description field, compare with supported ones 1564 // CPhipps - read the description field, compare with supported ones
@@ -2565,7 +2565,6 @@ static const byte* G_ReadDemoHeader(const byte *demo_p)
2565 skill_t skill; 2565 skill_t skill;
2566 int i, episode, map; 2566 int i, episode, map;
2567 int demover; 2567 int demover;
2568 const byte *option_p = NULL; /* killough 11/98 */
2569 2568
2570 basetic = gametic; // killough 9/29/98 2569 basetic = gametic; // killough 9/29/98
2571 2570
@@ -2674,10 +2673,6 @@ static const byte* G_ReadDemoHeader(const byte *demo_p)
2674 deathmatch = *demo_p++; 2673 deathmatch = *demo_p++;
2675 consoleplayer = *demo_p++; 2674 consoleplayer = *demo_p++;
2676 2675
2677 /* killough 11/98: save option pointer for below */
2678 if (mbf_features)
2679 option_p = demo_p;
2680
2681 demo_p = G_ReadOptions(demo_p); // killough 3/1/98: Read game options 2676 demo_p = G_ReadOptions(demo_p); // killough 3/1/98: Read game options
2682 2677
2683 if (demover == 200) // killough 6/3/98: partially fix v2.00 demos 2678 if (demover == 200) // killough 6/3/98: partially fix v2.00 demos