File: function-pointer-1097300

package info (click to toggle)
lincity 1.13.1-17
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 7,340 kB
  • sloc: ansic: 32,746; sh: 8,578; makefile: 584; perl: 445; yacc: 316; sed: 16
file content (22 lines) | stat: -rw-r--r-- 599 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
Description: Provide required function pointer arguments
 Prior to GCC 15, function pointer declarations could omit
 arguments. In GCC 15, they are interpreted strictly as nullary
 functions and trying to call them with any arguments is a compile
 error.
 .
 Upstream's dead so not forwarded.
Forwarded: no
Author: Kari Pahula <kaol@debian.org>
Last-Update: 2025-09-07

--- a/mouse.c
+++ b/mouse.c
@@ -1155,7 +1155,7 @@
 }
 
 int
-do_mt_draw (int x1, int x2, int y1, int y2, int (*mode)())
+do_mt_draw (int x1, int x2, int y1, int y2, int (*mode)(int, int))
 {
     int dir = 1;
     int horiz = 1;