You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/10/31 05:28:26 UTC

[incubator-nuttx-apps] 03/04: Fix Error: shift_main.c:763:7: error: variable 'score' set but not used [-Werror,-Wunused-but-set-variable]

This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git

commit 76fece26a26acfb91fd258456d9d2194c2d8a57f
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sun Oct 30 01:11:19 2022 +0800

    Fix Error: shift_main.c:763:7: error: variable 'score' set but not used [-Werror,-Wunused-but-set-variable]
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 games/shift/shift_main.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/games/shift/shift_main.c b/games/shift/shift_main.c
index d0906bf58..0e60f56a1 100644
--- a/games/shift/shift_main.c
+++ b/games/shift/shift_main.c
@@ -760,7 +760,6 @@ int main(int argc, FAR char *argv[])
   struct input_state_s input;
   struct screen_state_s state;
   struct fb_area_s area;
-  int score = 0;
   int ret;
 
   /* Open the framebuffer driver */
@@ -906,8 +905,6 @@ int main(int argc, FAR char *argv[])
             }
 
           usleep(500000);
-
-          score += 100;
         }
 
 #ifdef DEBUG_SHIFT_GAME