From 788f4ee4b8b9bf7d8983f5fc38f3fe170bf5e820 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 26 Sep 2025 16:43:25 -0500 Subject: [PATCH] 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. --- cpukit/libmisc/shell/hexdump-parse.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cpukit/libmisc/shell/hexdump-parse.c b/cpukit/libmisc/shell/hexdump-parse.c index 88b9d56c31..20ff2dc0c9 100644 --- a/cpukit/libmisc/shell/hexdump-parse.c +++ b/cpukit/libmisc/shell/hexdump-parse.c @@ -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);