Skip to content

fsutils/flashtool: Fix compile error due to missing statement after default label - #3683

Merged
acassis merged 1 commit into
apache:masterfrom
tuansuper:patch-1
Jul 31, 2026
Merged

fsutils/flashtool: Fix compile error due to missing statement after default label#3683
acassis merged 1 commit into
apache:masterfrom
tuansuper:patch-1

Conversation

@tuansuper

Copy link
Copy Markdown
Contributor

In flashtool_main.c, the 'default:' label in a switch statement was
followed directly by '}', which is invalid in C and causes a compile
error.

This commit adds a 'break;' statement after the default label to
resolve the error.

Impact:

  • Build: Fixes compilation of flashtool utility
  • Runtime: No functional change
  • Area: fsutils/flashtool

Tested:

  • Build Host: Ubuntu 22.04, arm-none-eabi-gcc 15.10.3
  • Target: sim:nsh (compilation test)

@Abhishekmishra2808

Copy link
Copy Markdown
Contributor

Thanks - @tuansuper, please sign your commit message with git commit -s
Check the detailed guidelines for contributions: (https://nuttx.apache.org/docs/latest/contributing/guide.html#commit-requirements).

…abel

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 <tunainnet@tutanota.com>
@acassis
acassis merged commit 5f286fc into apache:master Jul 31, 2026
45 of 79 checks passed
@tuansuper
tuansuper deleted the patch-1 branch July 31, 2026 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants