summaryrefslogtreecommitdiff
path: root/apps/plugins/text_viewer/text_viewer.c
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-05-01 14:44:20 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-05-01 14:44:20 +0000
commit27d153db930a231718a18ec5a886c8789077c83a (patch)
tree9d29fd6c1348f3ca1742774cb242177b3d0ca82b /apps/plugins/text_viewer/text_viewer.c
parentf7c45941344ecfbcdd5d9b311b61573d37c6ef58 (diff)
downloadrockbox-27d153db930a231718a18ec5a886c8789077c83a.tar.gz
rockbox-27d153db930a231718a18ec5a886c8789077c83a.zip
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
Diffstat (limited to 'apps/plugins/text_viewer/text_viewer.c')
-rw-r--r--apps/plugins/text_viewer/text_viewer.c4
1 files changed, 4 insertions, 0 deletions
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 @@
31enum plugin_status plugin_start(const void* file) 31enum plugin_status plugin_start(const void* file)
32{ 32{
33 int button; 33 int button;
34#if defined(TV_AUTOSCROLL_PRE)
34 int lastbutton = BUTTON_NONE; 35 int lastbutton = BUTTON_NONE;
36#endif
35 bool autoscroll = false; 37 bool autoscroll = false;
36 long old_tick; 38 long old_tick;
37 bool done = false; 39 bool done = false;
@@ -211,7 +213,9 @@ enum plugin_status plugin_start(const void* file)
211 } 213 }
212 if (button != BUTTON_NONE) 214 if (button != BUTTON_NONE)
213 { 215 {
216#if defined(TV_AUTOSCROLL_PRE)
214 lastbutton = button; 217 lastbutton = button;
218#endif
215 rb->yield(); 219 rb->yield();
216 } 220 }
217 if (autoscroll) 221 if (autoscroll)