diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-05-01 14:44:20 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-05-01 14:44:20 +0000 |
commit | 27d153db930a231718a18ec5a886c8789077c83a (patch) | |
tree | 9d29fd6c1348f3ca1742774cb242177b3d0ca82b /apps/plugins/oscilloscope.c | |
parent | f7c45941344ecfbcdd5d9b311b61573d37c6ef58 (diff) | |
download | rockbox-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/oscilloscope.c')
-rw-r--r-- | apps/plugins/oscilloscope.c | 6 |
1 files changed, 5 insertions, 1 deletions
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) | |||
786 | enum plugin_status plugin_start(const void* parameter) | 786 | enum plugin_status plugin_start(const void* parameter) |
787 | { | 787 | { |
788 | int button, vol; | 788 | int button, vol; |
789 | #if defined(OSCILLOSCOPE_DRAWMODE_PRE) || defined(OSCILLOSCOPE_ORIENTATION_PRE) | ||
789 | int lastbutton = BUTTON_NONE; | 790 | int lastbutton = BUTTON_NONE; |
791 | #endif | ||
790 | bool exit = false; | 792 | bool exit = false; |
791 | bool paused = false; | 793 | bool paused = false; |
792 | bool tell_speed; | 794 | bool tell_speed; |
@@ -917,9 +919,11 @@ enum plugin_status plugin_start(const void* parameter) | |||
917 | exit_on_usb(button); | 919 | exit_on_usb(button); |
918 | break; | 920 | break; |
919 | } | 921 | } |
922 | #if defined(OSCILLOSCOPE_DRAWMODE_PRE) || defined(OSCILLOSCOPE_ORIENTATION_PRE) | ||
920 | if (button != BUTTON_NONE) | 923 | if (button != BUTTON_NONE) |
921 | lastbutton = button; | 924 | lastbutton = button; |
922 | 925 | #endif | |
926 | |||
923 | if (tell_speed) | 927 | if (tell_speed) |
924 | { | 928 | { |
925 | rb->snprintf(message, sizeof(message), "%s%d", | 929 | rb->snprintf(message, sizeof(message), "%s%d", |