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

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


The following commit(s) were added to refs/heads/master by this push:
     new 5f286fc92 flashtool: Fix compile error due to missing statement after 
default label
5f286fc92 is described below

commit 5f286fc924995e4fe320f85ebd67073d42c6c399
Author: tuansuper <[email protected]>
AuthorDate: Thu Jul 30 23:22:42 2026 +0800

    flashtool: Fix compile error due to missing statement after default label
    
    In flashtool_main.c, the 'default:' label in a switch statement was
    followed directly by '}', which is invalid in C.
    This commit adds a 'break;' statement after the default label to
    resolve the error.
    
    Signed-off-by: tuansuper <[email protected]>
---
 fsutils/flashtool/flashtool_main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fsutils/flashtool/flashtool_main.c 
b/fsutils/flashtool/flashtool_main.c
index b1f7f29a4..bbb07a6d2 100644
--- a/fsutils/flashtool/flashtool_main.c
+++ b/fsutils/flashtool/flashtool_main.c
@@ -365,6 +365,7 @@ int main(int argc, FAR char *argv[])
         ret = check_bad_block(fd, &geo);
         break;
       default:
+        break;
     }
 
 oops:

Reply via email to