File: gcc-15.patch

package info (click to toggle)
gnustep-back 0.32.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,320 kB
  • sloc: objc: 42,426; ansic: 6,623; xml: 258; makefile: 130; sh: 120
file content (100 lines) | stat: -rw-r--r-- 2,051 bytes parent folder | download
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
Description: Fix FTBFS with GCC 15.
Bug-Debian: https://bugs.debian.org/1096745
Author: Yavor Doganov <yavor@gnu.org>
Applied-Upstream: commit:d277919
Forwarded: not-needed
Last-Update: 2025-03-26
---

--- gnustep-back.orig/Source/x11/xutil.c
+++ gnustep-back/Source/x11/xutil.c
@@ -42,7 +42,7 @@
 
 static int shmError;
 
-static int (*oldErrorHandler)();
+static int (*oldErrorHandler)(Display *dpy, XErrorEvent *err);
 
 static int
 errorHandler(Display *dpy, XErrorEvent *err)
--- gnustep-back.orig/Source/x11/scale.c
+++ gnustep-back/Source/x11/scale.c
@@ -256,8 +256,7 @@
 #define	box_support		(0.5)
 
 static double
-box_filter(t)
-double t;
+box_filter(double t)
 {
     if((t > -0.5) && (t <= 0.5)) return(1.0);
     return(0.0);
@@ -266,8 +265,7 @@
 #define	triangle_support	(1.0)
 
 static double
-triangle_filter(t)
-double t;
+triangle_filter(double t)
 {
     if(t < 0.0) t = -t;
     if(t < 1.0) return(1.0 - t);
@@ -277,8 +275,7 @@
 #define	bell_support		(1.5)
 
 static double
-bell_filter(t)		/* box (*) box (*) box */
-double t;
+bell_filter(double t)		/* box (*) box (*) box */
 {
     if(t < 0) t = -t;
     if(t < .5) return(.75 - (t * t));
@@ -292,8 +289,7 @@
 #define	B_spline_support	(2.0)
 
 static double
-B_spline_filter(t)	/* box (*) box (*) box (*) box */
-double t;
+B_spline_filter(double t)	/* box (*) box (*) box (*) box */
 {
     double tt;
     
@@ -309,8 +305,7 @@
 }
 
 static double
-sinc(x)
-double x;
+sinc(double x)
 {
     x *= PI;
     if(x != 0) return(sin(x) / x);
@@ -320,8 +315,7 @@
 #define	Lanczos3_support	(3.0)
 
 static double
-Lanczos3_filter(t)
-double t;
+Lanczos3_filter(double t)
 {
     if(t < 0) t = -t;
     if(t < 3.0) return(sinc(t) * sinc(t/3.0));
@@ -334,8 +328,7 @@
 #define	C	(1.0 / 3.0)
 
 static double
-Mitchell_filter(t)
-double t;
+Mitchell_filter(double t)
 {
     double tt;
     
@@ -356,7 +349,7 @@
     return(0.0);
 }
 
-static double (*filterf)() = Mitchell_filter;
+static double (*filterf)(double t) = Mitchell_filter;
 static double fwidth = Mitchell_support;
 
 void