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;
|