File: fix_ftbfs_gcc_15.patch

package info (click to toggle)
oneko 1.2.sakura.6-16
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,000 kB
  • sloc: ansic: 1,283; perl: 25; makefile: 23
file content (53 lines) | stat: -rw-r--r-- 1,202 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
Description: Fix FTBFS with GCC 15
Author: Ricardo Mones <mones@debian.org>
Bug-Debian: https://bugs.debian.org/1097505
Last-Update: 2025-09-14
Forwarded: not-needed

Index: b/oneko.c
===================================================================
--- a/oneko.c	2025-09-14 23:12:39.075402513 +0200
+++ b/oneko.c	2025-09-14 23:20:32.347426650 +0200
@@ -268,7 +268,7 @@
     { &RightTogi2GC, &RightTogi2Msk } },	/* NekoState == NEKO_R_TOGI */
 };
 
-static void NullFunction();
+static void NullFunction(int);
 
 /*
  *	$@%S%C%H%^%C%W%G!<%?!&(JGC $@=i4|2=(J
@@ -713,7 +713,7 @@
  */
 
 void
-RestoreCursor()
+RestoreCursor(int arg)
 {
   XSetWindowAttributes	theWindowAttributes;
   BitmapGCData *BitmapGCDataTablePtr;
@@ -1039,7 +1039,7 @@
 
       if (ToWindow && status == 0) {
 	fprintf(stderr, "%s: '%s', Target Lost.\n",ProgramName, WindowName);
-	RestoreCursor();
+	RestoreCursor(0);
       }
 
       if (theTargetAttributes.x+theTargetAttributes.width > 0 
@@ -1339,7 +1339,7 @@
  */
 
 static void
-NullFunction()
+NullFunction(int arg)
 {
   /* No Operation */
 #if defined(SYSV) || defined(SVR4)
@@ -1579,5 +1579,5 @@
 
   ProcessNeko();
 
-  RestoreCursor();
+  RestoreCursor(0);
 }