1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
Description: adding an intermediate function with suitable type and casting to
build against GCC-14
Author: Pierre Gruet <pgt@debian.org>
Bug-Debian: https://bugs.debian.org/1075170
Forwarded: no
Last-Update: 2024-07-27
--- a/gdc_pie.c
+++ b/gdc_pie.c
@@ -103,6 +103,13 @@
return 0;
}
+static int
+ocmpr_void(const void *a,
+ const void *b )
+{
+ return ocmpr((struct tmp_slice_t *)(a), (struct tmp_slice_t *)(b));
+}
+
/* ======================================================= *\
* PIE
*
@@ -476,7 +483,7 @@
}
}
- qsort( tmp_slice, num_slice_angles, sizeof(struct tmp_slice_t), ocmpr );
+ qsort( tmp_slice, num_slice_angles, sizeof(struct tmp_slice_t), ocmpr_void );
for( t=0; t<num_slice_angles; ++t )
{
gdPoint gdp[4];
|