From 27d153db930a231718a18ec5a886c8789077c83a Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Sun, 1 May 2011 14:44:20 +0000 Subject: 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 --- apps/plugins/text_viewer/text_viewer.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/plugins/text_viewer/text_viewer.c') diff --git a/apps/plugins/text_viewer/text_viewer.c b/apps/plugins/text_viewer/text_viewer.c index 3c04499b18..29a2e6d12a 100644 --- a/apps/plugins/text_viewer/text_viewer.c +++ b/apps/plugins/text_viewer/text_viewer.c @@ -31,7 +31,9 @@ enum plugin_status plugin_start(const void* file) { int button; +#if defined(TV_AUTOSCROLL_PRE) int lastbutton = BUTTON_NONE; +#endif bool autoscroll = false; long old_tick; bool done = false; @@ -211,7 +213,9 @@ enum plugin_status plugin_start(const void* file) } if (button != BUTTON_NONE) { +#if defined(TV_AUTOSCROLL_PRE) lastbutton = button; +#endif rb->yield(); } if (autoscroll) -- cgit v1.2.3