From 36602dbd840532b9ca6d31c1612bf1d539241e7a Mon Sep 17 00:00:00 2001 From: Aaron Merey Date: Tue, 12 Aug 2025 10:52:35 -0400 Subject: [PATCH] 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 --- src/readelf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.2