File: gcc14.patch

package info (click to toggle)
libgdchart-gd2 0.11.5-12.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 352 kB
  • sloc: ansic: 4,219; makefile: 286
file content (32 lines) | stat: -rw-r--r-- 769 bytes parent folder | download | duplicates (2)
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];