mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-19 00:18:26 +00:00
This commit fixes implicit function declaration errors and other modernc issues. It also fixes several warnings about deprecated or wrongly used headers. Configuration options added by these fixes are also adopted by adding some new use flags. Closes: https://bugs.gentoo.org/900312 Closes: https://bugs.gentoo.org/944357 Closes: https://bugs.gentoo.org/854612 Signed-off-by: Dennis Eisele <kernlpanic@dennis-eisele.de> Part-of: https://github.com/gentoo/gentoo/pull/42908 Closes: https://github.com/gentoo/gentoo/pull/42908 Signed-off-by: Sam James <sam@gentoo.org>
24 lines
815 B
Diff
24 lines
815 B
Diff
From 6466b0b0c537d135cf10fecb598bfd6d40194e37 Mon Sep 17 00:00:00 2001
|
|
From: Dennis Eisele <kernlpanic@dennis-eisele.de>
|
|
Date: Sun, 6 Jul 2025 17:57:24 +0200
|
|
Subject: [PATCH] hlink.c: fix function pointer cast in qsort()
|
|
|
|
Proposed-by: Charalampos Mitrodimas <charmitro@posteo.net>
|
|
---
|
|
hlink.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/hlink.c b/hlink.c
|
|
index 5a1e342..43ce6ec 100644
|
|
--- a/hlink.c
|
|
+++ b/hlink.c
|
|
@@ -121,7 +121,7 @@ static void match_gnums(int32 *ndx_list, int ndx_count)
|
|
int32 gnum, gnum_next;
|
|
|
|
qsort(ndx_list, ndx_count, sizeof ndx_list[0],
|
|
- (int (*)()) hlink_compare_gnum);
|
|
+ (int (*)(const void*, const void*)) hlink_compare_gnum);
|
|
|
|
if ( inc_recurse && prior_hlinks && hlink_nlinks ) {
|
|
for (from = 0; from < ndx_count; from++) {
|
|
|