diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2011-03-28 21:44:23 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2011-03-28 21:44:23 +0000 |
commit | cde3c9a08ebce0de71a7b0b0f9a0148cae1ea16f (patch) | |
tree | 64f85f721dc8de5f55b18bd25875766f3ef77218 /apps | |
parent | 5c4c691cd3465c3cbca83581aa079648fa2d8d04 (diff) |
maze: fix warning spotted by gcc 4.6.0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29658 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/maze.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/plugins/maze.c b/apps/plugins/maze.c index e84173944b..b093a6439d 100644 --- a/apps/plugins/maze.c +++ b/apps/plugins/maze.c @@ -490,7 +490,10 @@ static void maze_move_player_left(struct maze* maze) /**********************************/ enum plugin_status plugin_start(const void* parameter) { - int button, lastbutton = BUTTON_NONE; + int button; +#ifdef MAZE_NEW_PRE + int lastbutton = BUTTON_NONE; +#endif int quit = 0; int i; struct maze maze; @@ -581,8 +584,10 @@ enum plugin_status plugin_start(const void* parameter) } break; } +#ifdef MAZE_NEW_PRE if( button != BUTTON_NONE ) lastbutton = button; +#endif } /* Turn on backlight timeout (revert to settings) */ backlight_use_settings(); |