aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-02-16 10:16:30 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2020-02-16 10:16:30 +0000
commitbadf3b23a4d17bfcd87cb855916d321c81868565 (patch)
tree06132fcb1c0a1545eaaf84392cde5434aba2c312 /dumpelf.c
parentsecurity.c: whitelist ipc() syscall for fakeroot on ppc64 and friends (diff)
downloadpax-utils-badf3b23a4d17bfcd87cb855916d321c81868565.tar.gz
pax-utils-badf3b23a4d17bfcd87cb855916d321c81868565.tar.bz2
pax-utils-badf3b23a4d17bfcd87cb855916d321c81868565.zip
dumpelf.c: add missing break when decoding SHT_GNU_LIBLIST
Detected by gcc-10 as: ``` dumpelf.c: In function 'dump_shdr': dumpelf.c:462:4: warning: this statement may fall through [-Wimplicit-fallthrough=] 462 | printf("\t */\n"); \ | ^~~~~~~~~~~~~~~~~ ``` Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'dumpelf.c')
-rw-r--r--dumpelf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dumpelf.c b/dumpelf.c
index 405beba..bc634f0 100644
--- a/dumpelf.c
+++ b/dumpelf.c
@@ -460,6 +460,7 @@ static void dump_shdr(elfobj *elf, const void *shdr_void, size_t shdr_cnt, const
++lib; \
} \
printf("\t */\n"); \
+ break; \
} \
default: { \
if (be_verbose <= 1) \