commit: badf3b23a4d17bfcd87cb855916d321c81868565
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 16 10:16:30 2020 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sun Feb 16 10:16:30 2020 +0000
URL: https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=badf3b23
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 <AT> gentoo.org>
dumpelf.c | 1 +
1 file changed, 1 insertion(+)
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) \