File chasen-2.4.5-gcc15.patch of Package chasen
Index: chasen-2.4.5/lib/connect.c
===================================================================
--- 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 */
Index: chasen-2.4.5/lib/iotool.c
===================================================================
--- chasen-2.4.5.orig/lib/iotool.c
+++ chasen-2.4.5/lib/iotool.c
@@ -362,7 +362,7 @@ FILE *
cha_fopen_rcfile(void)
{
FILE *fp;
- char *home_dir, *rc_env, *getenv();
+ char *home_dir, *rc_env;
/*
* -R option (standard alone)
Index: chasen-2.4.5/lib/print.c
===================================================================
--- 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)