mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user