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/oscilloscope.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apps/plugins/oscilloscope.c') diff --git a/apps/plugins/oscilloscope.c b/apps/plugins/oscilloscope.c index c55948dce9..07bf1da8bb 100644 --- a/apps/plugins/oscilloscope.c +++ b/apps/plugins/oscilloscope.c @@ -786,7 +786,9 @@ void cleanup(void) enum plugin_status plugin_start(const void* parameter) { int button, vol; +#if defined(OSCILLOSCOPE_DRAWMODE_PRE) || defined(OSCILLOSCOPE_ORIENTATION_PRE) int lastbutton = BUTTON_NONE; +#endif bool exit = false; bool paused = false; bool tell_speed; @@ -917,9 +919,11 @@ enum plugin_status plugin_start(const void* parameter) exit_on_usb(button); break; } +#if defined(OSCILLOSCOPE_DRAWMODE_PRE) || defined(OSCILLOSCOPE_ORIENTATION_PRE) if (button != BUTTON_NONE) lastbutton = button; - +#endif + if (tell_speed) { rb->snprintf(message, sizeof(message), "%s%d", -- cgit v1.2.3