From: Aaron Merey Date: Tue, 12 Aug 2025 14:52:35 +0000 (-0400) Subject: readelf.c: Declare num_jobs as ssize_t instead of size_t X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fheads%2Fusers%2Famerey%2Ftry-lcov-and-ssize_t;p=thirdparty%2Felfutils.git readelf.c: Declare num_jobs as ssize_t instead of size_t Use of ssize_t prevents gcc error -Werror=sign-compare when comparing num_jobs to ndebug_sections. Signed-off-by: Aaron Merey --- 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