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
|
Description: Fix FTBFS with GCC 15
Bug-Debian: https://bugs.debian.org/1096430
--- chasen-2.4.5.orig/lib/connect.c
+++ chasen-2.4.5/lib/connect.c
@@ -203,11 +203,11 @@ cha_check_table(lexicon_t * mrph)
if (rensetu_tbl[0].hinsi == 0)
qsort(rensetu_tbl, tbl_num, sizeof(rensetu_pair_t),
- (int (*)()) cmp_pair);
+ (int (*)(const void *, const void *)) cmp_pair);
ret = (rensetu_pair_t *)
bsearch(mrph, rensetu_tbl, tbl_num_goi,
- sizeof(rensetu_pair_t), (int (*)()) find_table);
+ sizeof(rensetu_pair_t), (int (*)(const void *, const void *)) find_table);
if (ret) {
mrph->con_tbl = ret->index;
return 1;
@@ -215,7 +215,7 @@ cha_check_table(lexicon_t * mrph)
ret = (rensetu_pair_t *)
bsearch(mrph, rensetu_tbl + tbl_num_goi, tbl_num - tbl_num_goi,
- sizeof(rensetu_pair_t), (int (*)()) find_table);
+ sizeof(rensetu_pair_t), (int (*)(const void *, const void *)) find_table);
if (ret) {
mrph->con_tbl = ret->index;
return 1; /* if no error, return 1 */
--- chasen-2.4.5.orig/lib/iotool.c
+++ chasen-2.4.5/lib/iotool.c
@@ -367,7 +367,7 @@ FILE *
cha_fopen_rcfile(void)
{
FILE *fp;
- char *home_dir, *rc_env, *getenv();
+ char *home_dir, *rc_env;
/*
* -R option (standard alone)
--- chasen-2.4.5.orig/lib/print.c
+++ chasen-2.4.5/lib/print.c
@@ -47,7 +47,7 @@
static int path_buffer[CHA_INPUT_SIZE];
static int pos_end = 0;
-static void (*cha_putc) (), (*cha_puts) (), (*cha_printf) (), (*cha_write) ();
+static void (*cha_putc) (int, char*), (*cha_puts) (char*, char*), (*cha_printf) (char*, char*,...), (*cha_write) (void*, size_t, size_t, char*);
void
cha_print_reset(void)
|