Use of ssize_t prevents gcc error -Werror=sign-compare when comparing
num_jobs to ndebug_sections.

Signed-off-by: Aaron Merey <ame...@redhat.com>
---
 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.50.1

Reply via email to