diff options
author | Ilya Leoshkevich <iii@linux.ibm.com> | 2023-02-06 23:25:07 +0100 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2023-02-08 18:04:21 +0100 |
commit | 85c82b18475dfe1cbbc4250cfbec7844d233100b (patch) | |
tree | 72ff3dd5cb3f8f1223e3df2bc4def20f5a6992a8 /src | |
parent | 53b596ef4018693403395d702045c15762af3da7 (diff) | |
download | elfutils-85c82b18475dfe1cbbc4250cfbec7844d233100b.tar.gz |
readelf: Fix set but not used variable
clang complains:
readelf.c:10250:10: error: variable 'nculist' set but not used [-Werror,-Wunused-but-set-variable]
size_t nculist = 0;
^
Fix by deleting it.
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/readelf.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/readelf.c b/src/readelf.c index 51b0e8b9..0bbd708e 100644 --- a/src/readelf.c +++ b/src/readelf.c @@ -10247,7 +10247,6 @@ print_debug_macro_section (Dwfl_Module *dwflmod __attribute__ ((unused)), Dwarf_Off ncu = 0; size_t hsize; struct mac_culist *culist = NULL; - size_t nculist = 0; while (dwarf_nextcu (dbg, offset = ncu, &ncu, &hsize, NULL, NULL, NULL) == 0) { Dwarf_Die cudie; @@ -10268,7 +10267,6 @@ print_debug_macro_section (Dwfl_Module *dwflmod __attribute__ ((unused)), newp->files = NULL; newp->next = culist; culist = newp; - ++nculist; } const unsigned char *readp = (const unsigned char *) data->d_buf; |