diff options
author | Aaron Merey <[email protected]> | 2025-08-12 10:52:35 -0400 |
---|---|---|
committer | Aaron Merey <[email protected]> | 2025-08-12 10:52:35 -0400 |
commit | 36602dbd840532b9ca6d31c1612bf1d539241e7a (patch) | |
tree | 4fa4fce582876e70134921ccb0818d21e6c269be | |
parent | c657300fc81241aac9a2859c2f538bec3a5bf89d (diff) |
readelf.c: Declare num_jobs as ssize_t instead of size_tupstream/users/amerey/try-lcov-and-ssize_tupstream/main
Use of ssize_t prevents gcc error -Werror=sign-compare when comparing
num_jobs to ndebug_sections.
Signed-off-by: Aaron Merey <[email protected]>
-rw-r--r-- | src/readelf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/readelf.c b/src/readelf.c index bb451518..6b886c59 100644 --- a/src/readelf.c +++ b/src/readelf.c @@ -12305,7 +12305,7 @@ print_debug (Dwfl_Module *dwflmod, Ebl *ebl, GElf_Ehdr *ehdr) if (unlikely (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0)) error_exit (0, _("cannot get section header string table index")); - size_t num_jobs = 0; + ssize_t num_jobs = 0; job_data *jdata = NULL; /* If the .debug_info section is listed as implicitly required then |