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/chessbox | |
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/chessbox')
-rw-r--r-- | apps/plugins/chessbox/chessbox.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/plugins/chessbox/chessbox.c b/apps/plugins/chessbox/chessbox.c index 6e77b62718..6437c8d4fd 100644 --- a/apps/plugins/chessbox/chessbox.c +++ b/apps/plugins/chessbox/chessbox.c | |||
@@ -641,7 +641,10 @@ static int cb_menu(void) | |||
641 | struct cb_command cb_getcommand (void) { | 641 | struct cb_command cb_getcommand (void) { |
642 | static short x = 4 , y = 3 ; | 642 | static short x = 4 , y = 3 ; |
643 | short c , r , l; | 643 | short c , r , l; |
644 | int button, lastbutton = BUTTON_NONE; | 644 | int button; |
645 | #if defined(CB_PLAY_PRE) || defined(CB_SELECT_PRE) | ||
646 | int lastbutton = BUTTON_NONE; | ||
647 | #endif | ||
645 | int marked = false , from_marked = false ; | 648 | int marked = false , from_marked = false ; |
646 | short marked_x = 0 , marked_y = 0 ; | 649 | short marked_x = 0 , marked_y = 0 ; |
647 | struct cb_command result = { 0, {0,0,0,0,0}, 0 }; | 650 | struct cb_command result = { 0, {0,0,0,0,0}, 0 }; |
@@ -761,8 +764,10 @@ struct cb_command cb_getcommand (void) { | |||
761 | } | 764 | } |
762 | break; | 765 | break; |
763 | } | 766 | } |
767 | #if defined(CB_PLAY_PRE) || defined(CB_SELECT_PRE) | ||
764 | if (button != BUTTON_NONE) | 768 | if (button != BUTTON_NONE) |
765 | lastbutton = button; | 769 | lastbutton = button; |
770 | #endif | ||
766 | } | 771 | } |
767 | 772 | ||
768 | } | 773 | } |