cpukit/libmisc/shell/hexdump-parse.c: Fix fall through warning

The case did not have a break because it was calling a function
which should have been marked as "__dead". It was calling a
function which was marked "__dead". Apparently the analysis
did not see through the extra layer.
This commit is contained in:
Joel Sherrill
2025-09-26 16:43:25 -05:00
parent d8737d61cd
commit 788f4ee4b8

View File

@@ -506,25 +506,25 @@ escape(char *p1)
}
}
void
__dead void
badcnt(rtems_shell_hexdump_globals* globals, char *s)
{
errx(exit_jump, 1, "%s: bad byte count", s);
}
void
__dead void
badsfmt(rtems_shell_hexdump_globals* globals)
{
errx(exit_jump, 1, "%%s: requires a precision or a byte count");
}
void
__dead void
badfmt(rtems_shell_hexdump_globals* globals, const char *fmt)
{
errx(exit_jump, 1, "\"%s\": bad format", fmt);
}
void
__dead void
badconv(rtems_shell_hexdump_globals* globals, char *ch)
{
errx(exit_jump, 1, "%%%s: bad conversion character", ch);