File: gcc-15.patch

package info (click to toggle)
bip 0.9.3-1.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,456 kB
  • sloc: ansic: 9,941; sh: 1,902; perl: 1,434; yacc: 212; lex: 137; makefile: 64
file content (22 lines) | stat: -rw-r--r-- 537 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: Fix FTBFS with GCC 15
Author: Adrian Bunk <bunk@debian.org>
Bug-Debian: https://bugs.debian.org/1096374

--- bip-0.9.3.orig/src/util.h
+++ bip-0.9.3/src/util.h
@@ -43,14 +43,11 @@ struct list_item {
 	void *ptr;
 };
 
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wstrict-prototypes"
 typedef struct list {
 	struct list_item *first;
 	struct list_item *last;
-	int (*cmp)();
+	int (*cmp)(const void *, const void *);
 } list_t;
-#pragma GCC diagnostic pop
 
 typedef struct list_iterator {
 	list_t *list;