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];
