[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/igc 6eecf9e9a63 4/4: Fix compilation warning
From: |
Pip Cet |
Subject: |
scratch/igc 6eecf9e9a63 4/4: Fix compilation warning |
Date: |
Tue, 16 Jul 2024 14:30:26 -0400 (EDT) |
branch: scratch/igc
commit 6eecf9e9a63c9bb72bbcc6a8c7a9190e17227c55
Author: Pip Cet <pipcet@protonmail.com>
Commit: Pip Cet <pipcet@protonmail.com>
Fix compilation warning
* src/igc.c (igc_xpalloc_exact): Cast function pointer to avoid
compilation warning.
---
src/igc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/igc.c b/src/igc.c
index 2cdf884f4ee..09dffcba574 100644
--- a/src/igc.c
+++ b/src/igc.c
@@ -3014,8 +3014,8 @@ igc_xpalloc_exact (void **pa_cell, ptrdiff_t *nitems,
destroy_root_with_start (pa);
pa = xpalloc (pa, nitems, nitems_incr_min, nitems_max, item_size);
char *end = (char *)pa + *nitems * item_size;
- root_create (global_igc, pa, end, mps_rank_exact (), scan_area, closure,
- false, "xpalloc-exact");
+ root_create (global_igc, pa, end, mps_rank_exact (), (mps_area_scan_t)
scan_area,
+ closure, false, "xpalloc-exact");
*pa_cell = pa;
}
}