Skip to content

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

Open
tuansuper wants to merge 1 commit into
apache:masterfrom
tuansuper:patch-1
Open

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

Conversation

@tuansuper

Copy link
Copy Markdown

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>
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.

4 participants