libkkc icon indicating copy to clipboard operation
libkkc copied to clipboard

0.3.5 + master (4583ab17): is not gcc 14.x ready

Open kloczek opened this issue 1 year ago • 1 comments

Looks like last version build fails with latest gcc 14.x which is now used in fedora rawhide.

kloczek avatar Jan 31 '24 00:01 kloczek

Build fails with
`[tkloczko@pers-jacek libkkc-0.3.5]$ make -k
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/docs'
make[1]: '.gitignore' is up to date.
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/docs'
make  all-recursive
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5'
Making all in marisa-glib
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/marisa-glib'
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/marisa-glib'
Making all in libkkc
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/libkkc'
Makefile:1525: warning: overriding recipe for target 'kkc-1.0.vapi'
Makefile:1510: warning: ignoring old recipe for target 'kkc-1.0.vapi'
  CC       libkkc_la-bigram-decoder.lo
In file included from /usr/include/glib-2.0/glib/gthread.h:34,
                 from /usr/include/glib-2.0/glib/gasyncqueue.h:34,
                 from /usr/include/glib-2.0/glib.h:34,
                 from /usr/include/glib-2.0/gobject/gbinding.h:30,
                 from /usr/include/glib-2.0/glib-object.h:24,
                 from bigram-decoder.c:22:
bigram-decoder.c: In function 'kkc_nbest_node_get_type':
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Wdiscarded-qualifiers]
  131 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
      |     ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:272:7: note: in expansion of macro 'g_atomic_pointer_get'
  272 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
bigram-decoder.c:451:13: note: in expansion of macro 'g_once_init_enter'
  451 |         if (g_once_init_enter (&kkc_nbest_node_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
bigram-decoder.c: In function 'kkc_bigram_decoder_real_decode_with_costs':
bigram-decoder.c:611:38: warning: variable '_tmp10__length1' set but not used [-Wunused-but-set-variable]
  611 |                                 gint _tmp10__length1;
      |                                      ^~~~~~~~~~~~~~~
bigram-decoder.c:608:48: warning: variable '_tmp9_' set but not used [-Wunused-but-set-variable]
  608 |                                 GeeArrayList** _tmp9_;
      |                                                ^~~~~~
bigram-decoder.c:555:14: warning: variable '_segments_size_' set but not used [-Wunused-but-set-variable]
  555 |         gint _segments_size_;
      |              ^~~~~~~~~~~~~~~
bigram-decoder.c:544:14: warning: variable '_trellis_size_' set but not used [-Wunused-but-set-variable]
  544 |         gint _trellis_size_;
      |              ^~~~~~~~~~~~~~
bigram-decoder.c: In function 'kkc_bigram_decoder_build_trellis':
bigram-decoder.c:1016:38: warning: variable '_tmp4__length1' set but not used [-Wunused-but-set-variable]
 1016 |                                 gint _tmp4__length1;
      |                                      ^~~~~~~~~~~~~~
bigram-decoder.c:1013:48: warning: variable '_tmp3_' set but not used [-Wunused-but-set-variable]
 1013 |                                 GeeArrayList** _tmp3_;
      |                                                ^~~~~~
bigram-decoder.c:1179:54: warning: variable '_tmp39__length1' set but not used [-Wunused-but-set-variable]
 1179 |                                                 gint _tmp39__length1;
      |                                                      ^~~~~~~~~~~~~~~
bigram-decoder.c:980:14: warning: variable '_tmp19__length1' set but not used [-Wunused-but-set-variable]
  980 |         gint _tmp19__length1;
      |              ^~~~~~~~~~~~~~~
bigram-decoder.c:970:14: warning: variable '_tmp11__length1' set but not used [-Wunused-but-set-variable]
  970 |         gint _tmp11__length1;
      |              ^~~~~~~~~~~~~~~
bigram-decoder.c:962:14: warning: variable '_trellis_size_' set but not used [-Wunused-but-set-variable]
  962 |         gint _trellis_size_;
      |              ^~~~~~~~~~~~~~
bigram-decoder.c: In function 'kkc_bigram_decoder_check_constraint':
bigram-decoder.c:1284:22: warning: unused variable '_c_collection_size_' [-Wunused-variable]
 1284 |                 gint _c_collection_size_ = 0;
      |                      ^~~~~~~~~~~~~~~~~~~
bigram-decoder.c: In function 'kkc_bigram_decoder_check_overlaps':
bigram-decoder.c:1347:22: warning: unused variable '_c_collection_size_' [-Wunused-variable]
 1347 |                 gint _c_collection_size_ = 0;
      |                      ^~~~~~~~~~~~~~~~~~~
bigram-decoder.c: In function 'kkc_bigram_decoder_nbest_node_to_segment':
bigram-decoder.c:1837:54: warning: variable '_tmp12__length1' set but not used [-Wunused-but-set-variable]
 1837 |                                                 gint _tmp12__length1;
      |                                                      ^~~~~~~~~~~~~~~
bigram-decoder.c:1829:72: warning: variable '_tmp8_' set but not used [-Wunused-but-set-variable]
 1829 |                                                 KkcLanguageModelEntry* _tmp8_;
      |                                                                        ^~~~~~
bigram-decoder.c: In function 'kkc_bigram_decoder_backward_search':
bigram-decoder.c:2190:70: warning: variable '_tmp21__length1' set but not used [-Wunused-but-set-variable]
 2190 |                                                                 gint _tmp21__length1;
      |                                                                      ^~~~~~~~~~~~~~~
bigram-decoder.c:2162:72: warning: variable '_tmp15_' set but not used [-Wunused-but-set-variable]
 2162 |                                                 KkcLanguageModelEntry* _tmp15_;
      |                                                                        ^~~~~~~
bigram-decoder.vala:277:11: error: assignment to 'KkcSegment **' {aka 'struct _KkcSegment **'} from incompatible pointer type 'void **' [-Wincompatible-pointer-types]
  277 |             return segments.to_array ();
      |           ^
bigram-decoder.c: In function 'kkc_bigram_decoder_get_type':
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Wdiscarded-qualifiers]
  131 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
      |     ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:272:7: note: in expansion of macro 'g_atomic_pointer_get'
  272 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
bigram-decoder.c:3011:13: note: in expansion of macro 'g_once_init_enter'
 3011 |         if (g_once_init_enter (&kkc_bigram_decoder_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:929: libkkc_la-bigram-decoder.lo] Error 1
  CC       libkkc_la-segment-list.lo
segment-list.vala: In function 'kkc_segment_list_to_array':
segment-list.vala:124:9: error: assignment to 'KkcSegment **' {aka 'struct _KkcSegment **'} from incompatible pointer type 'void **' [-Wincompatible-pointer-types]
  124 |             return segments.to_array ();
      |         ^
In file included from /usr/include/glib-2.0/glib/gthread.h:34,
                 from /usr/include/glib-2.0/glib/gasyncqueue.h:34,
                 from /usr/include/glib-2.0/glib.h:34,
                 from ../libkkc/libkkc.h:6,
                 from segment-list.c:22:
segment-list.c: In function 'kkc_segment_list_get_type':
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Wdiscarded-qualifiers]
  131 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
      |     ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:272:7: note: in expansion of macro 'g_atomic_pointer_get'
  272 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
segment-list.c:820:13: note: in expansion of macro 'g_once_init_enter'
  820 |         if (g_once_init_enter (&kkc_segment_list_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:943: libkkc_la-segment-list.lo] Error 1
  CC       libkkc_la-candidate-list.lo
candidate-list.vala: In function 'kkc_candidate_list_contains':
candidate-list.vala:93:2: warning: 'gee_map_contains' is deprecated [-Wdeprecated-declarations]
   93 |             return candidate.output in seen;
      |  ^
In file included from ../libkkc/libkkc.h:14,
                 from candidate-list.c:22:
/usr/include/gee-0.8/gee.h:2212:22: note: declared here
 2212 | VALA_EXTERN gboolean gee_map_contains (GeeMap* self,
      |                      ^~~~~~~~~~~~~~~~
candidate-list.vala: In function 'kkc_candidate_list_add':
candidate-list.vala:97:2: warning: 'gee_map_contains' is deprecated [-Wdeprecated-declarations]
   97 |             if (candidate.output in seen) {
      |  ^
/usr/include/gee-0.8/gee.h:2212:22: note: declared here
 2212 | VALA_EXTERN gboolean gee_map_contains (GeeMap* self,
      |                      ^~~~~~~~~~~~~~~~
candidate-list.vala: In function 'kkc_candidate_list_to_array':
candidate-list.vala:121:9: error: assignment to 'KkcCandidate **' {aka 'struct _KkcCandidate **'} from incompatible pointer type 'void **' [-Wincompatible-pointer-types]
  121 |             return _candidates.to_array ();
      |         ^
In file included from /usr/include/glib-2.0/glib/gthread.h:34,
                 from /usr/include/glib-2.0/glib/gasyncqueue.h:34,
                 from /usr/include/glib-2.0/glib.h:34,
                 from ../libkkc/libkkc.h:6:
candidate-list.c: In function 'kkc_candidate_list_get_type':
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Wdiscarded-qualifiers]
  131 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
      |     ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:272:7: note: in expansion of macro 'g_atomic_pointer_get'
  272 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
candidate-list.c:1472:13: note: in expansion of macro 'g_once_init_enter'
 1472 |         if (g_once_init_enter (&kkc_candidate_list_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:964: libkkc_la-candidate-list.lo] Error 1
  CC       libkkc_la-key-event.lo
In file included from /usr/include/glib-2.0/glib/gthread.h:34,
                 from /usr/include/glib-2.0/glib/gasyncqueue.h:34,
                 from /usr/include/glib-2.0/glib.h:34,
                 from ../libkkc/libkkc.h:6,
                 from key-event.c:22:
key-event.c: In function 'kkc_key_event_format_error_get_type':
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Wdiscarded-qualifiers]
  131 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
      |     ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:272:7: note: in expansion of macro 'g_atomic_pointer_get'
  272 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
key-event.c:93:13: note: in expansion of macro 'g_once_init_enter'
   93 |         if (g_once_init_enter (&kkc_key_event_format_error_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
key-event.c: In function 'kkc_modifier_type_get_type':
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Wdiscarded-qualifiers]
  131 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
      |     ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:272:7: note: in expansion of macro 'g_atomic_pointer_get'
  272 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
key-event.c:117:13: note: in expansion of macro 'g_once_init_enter'
  117 |         if (g_once_init_enter (&kkc_modifier_type_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
key-event.c: In function 'kkc_key_event_construct_from_string':
key-event.c:573:110: warning: variable '_tmp27__length1' set but not used [-Wunused-but-set-variable]
  573 |                                                                                                         gint _tmp27__length1;
      |                                                                                                              ^~~~~~~~~~~~~~~
key-event.c:558:102: warning: variable '_tmp25__length1' set but not used [-Wunused-but-set-variable]
  558 |                                                                                                 gint _tmp25__length1;
      |                                                                                                      ^~~~~~~~~~~~~~~
key-event.c:543:94: warning: variable '_tmp23__length1' set but not used [-Wunused-but-set-variable]
  543 |                                                                                         gint _tmp23__length1;
      |                                                                                              ^~~~~~~~~~~~~~~
key-event.c:528:86: warning: variable '_tmp21__length1' set but not used [-Wunused-but-set-variable]
  528 |                                                                                 gint _tmp21__length1;
      |                                                                                      ^~~~~~~~~~~~~~~
key-event.c:513:78: warning: variable '_tmp19__length1' set but not used [-Wunused-but-set-variable]
  513 |                                                                         gint _tmp19__length1;
      |                                                                              ^~~~~~~~~~~~~~~
key-event.c:498:70: warning: variable '_tmp17__length1' set but not used [-Wunused-but-set-variable]
  498 |                                                                 gint _tmp17__length1;
      |                                                                      ^~~~~~~~~~~~~~~
key-event.c:483:62: warning: variable '_tmp15__length1' set but not used [-Wunused-but-set-variable]
  483 |                                                         gint _tmp15__length1;
      |                                                              ^~~~~~~~~~~~~~~
key-event.c:468:54: warning: variable '_tmp13__length1' set but not used [-Wunused-but-set-variable]
  468 |                                                 gint _tmp13__length1;
      |                                                      ^~~~~~~~~~~~~~~
key-event.c:453:46: warning: variable '_tmp11__length1' set but not used [-Wunused-but-set-variable]
  453 |                                         gint _tmp11__length1;
      |                                              ^~~~~~~~~~~~~~~
key-event.c:416:38: warning: variable '_tmp9__length1' set but not used [-Wunused-but-set-variable]
  416 |                                 gint _tmp9__length1;
      |                                      ^~~~~~~~~~~~~~
key-event.c:413:41: warning: variable '_tmp8_' set but not used [-Wunused-but-set-variable]
  413 |                                 gchar** _tmp8_;
      |                                         ^~~~~~
key-event.c:631:30: warning: variable '_tmp32__length1' set but not used [-Wunused-but-set-variable]
  631 |                         gint _tmp32__length1;
      |                              ^~~~~~~~~~~~~~~
key-event.c:383:22: warning: variable '_tmp30__length1' set but not used [-Wunused-but-set-variable]
  383 |                 gint _tmp30__length1;
      |                      ^~~~~~~~~~~~~~~
key-event.c:380:22: warning: variable '_strv_size_' set but not used [-Wunused-but-set-variable]
  380 |                 gint _strv_size_;
      |                      ^~~~~~~~~~~
key-event.c:719:38: warning: unused variable '_mod_collection_size_' [-Wunused-variable]
  719 |                                 gint _mod_collection_size_ = 0;
      |                                      ^~~~~~~~~~~~~~~~~~~~~
key-event.c:689:30: warning: variable '_mods_size_' set but not used [-Wunused-but-set-variable]
  689 |                         gint _mods_size_;
      |                              ^~~~~~~~~~~
key-event.vala: In function 'kkc_key_event_to_string':
key-event.vala:194:9: error: assignment to 'gchar **' {aka 'char **'} from incompatible pointer type 'void **' [-Wincompatible-pointer-types]
  194 |                 var array = elements.to_array ();
      |         ^
key-event.c:1257:25: warning: variable '_tmp33_' set but not used [-Wunused-but-set-variable]
 1257 |                 gchar** _tmp33_;
      |                         ^~~~~~~
key-event.c:1255:22: warning: variable '_array_size_' set but not used [-Wunused-but-set-variable]
 1255 |                 gint _array_size_;
      |                      ^~~~~~~~~~~~
key-event.vala: In function 'kkc_key_event_set_name':
key-event.vala:58:12: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   58 |         public string name { get; construct set; }
      |            ^
key-event.c: In function 'kkc_key_event_get_type':
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Wdiscarded-qualifiers]
  131 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
      |     ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:272:7: note: in expansion of macro 'g_atomic_pointer_get'
  272 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
key-event.c:1803:13: note: in expansion of macro 'g_once_init_enter'
 1803 |         if (g_once_init_enter (&kkc_key_event_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:985: libkkc_la-key-event.lo] Error 1
  CC       libkkc_la-keymap.lo
In file included from /usr/include/glib-2.0/glib/gthread.h:34,
                 from /usr/include/glib-2.0/glib/gasyncqueue.h:34,
                 from /usr/include/glib-2.0/glib.h:34,
                 from /usr/include/glib-2.0/gobject/gbinding.h:30,
                 from /usr/include/glib-2.0/glib-object.h:24,
                 from keymap.c:22:
keymap.c: In function 'kkc_keymap_command_entry_get_type':
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Wdiscarded-qualifiers]
  131 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
      |     ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:272:7: note: in expansion of macro 'g_atomic_pointer_get'
  272 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
keymap.c:163:13: note: in expansion of macro 'g_once_init_enter'
  163 |         if (g_once_init_enter (&kkc_keymap_command_entry_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
keymap.c: In function 'kkc_keymap_entry_get_type':
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Wdiscarded-qualifiers]
  131 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
      |     ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:272:7: note: in expansion of macro 'g_atomic_pointer_get'
  272 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
keymap.c:251:13: note: in expansion of macro 'g_once_init_enter'
  251 |         if (g_once_init_enter (&kkc_keymap_entry_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
keymap.vala: In function 'kkc_keymap_commands':
keymap.vala:81:9: error: assignment to 'gchar **' {aka 'char **'} from incompatible pointer type 'void **' [-Wincompatible-pointer-types]
   81 |             return _CommandTable.keys.to_array ();
      |         ^
keymap.c: In function 'kkc_keymap_get_type':
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Wdiscarded-qualifiers]
  131 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
      |     ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:272:7: note: in expansion of macro 'g_atomic_pointer_get'
  272 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
keymap.c:1092:13: note: in expansion of macro 'g_once_init_enter'
 1092 |         if (g_once_init_enter (&kkc_keymap_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:992: libkkc_la-keymap.lo] Error 1
  CC       libkkc_la-rom-kana-utils.lo
In file included from /usr/include/glib-2.0/glib/gthread.h:34,
                 from /usr/include/glib-2.0/glib/gasyncqueue.h:34,
                 from /usr/include/glib-2.0/glib.h:34,
                 from /usr/include/glib-2.0/gobject/gbinding.h:30,
                 from /usr/include/glib-2.0/glib-object.h:24,
                 from rom-kana-utils.c:22:
rom-kana-utils.c: In function 'kkc_numeric_conversion_type_get_type':
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Wdiscarded-qualifiers]
  131 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
      |     ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:272:7: note: in expansion of macro 'g_atomic_pointer_get'
  272 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
rom-kana-utils.c:201:13: note: in expansion of macro 'g_once_init_enter'
  201 |         if (g_once_init_enter (&kkc_numeric_conversion_type_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
rom-kana-utils.vala: In function 'kkc_rom_kana_utils_get_katakana':
rom-kana-utils.vala:232:45: error: passing argument 2 of 'kkc_rom_kana_utils_foreach_katakana' from incompatible pointer type [-Wincompatible-pointer-types]
  232 |             foreach_katakana (kana, (uc) => {
      |                                             ^
      |                                             |
      |                                             void (*)(const void *, void *)
rom-kana-utils.c:636:44: note: expected 'GFunc' {aka 'void (*)(void *, void *)'} but argument is of type 'void (*)(const void *, void *)'
  636 |                                      GFunc func,
      |                                      ~~~~~~^~~~
rom-kana-utils.vala: In function 'kkc_rom_kana_utils_get_hiragana':
rom-kana-utils.vala:240:45: error: passing argument 2 of 'kkc_rom_kana_utils_foreach_katakana' from incompatible pointer type [-Wincompatible-pointer-types]
  240 |             foreach_katakana (kana, (uc) => {
      |                                             ^
      |                                             |
      |                                             void (*)(const void *, void *)
rom-kana-utils.c:636:44: note: expected 'GFunc' {aka 'void (*)(void *, void *)'} but argument is of type 'void (*)(const void *, void *)'
  636 |                                      GFunc func,
      |                                      ~~~~~~^~~~
rom-kana-utils.vala: In function 'kkc_rom_kana_utils_get_hankaku_katakana':
rom-kana-utils.vala:252:45: error: passing argument 2 of 'kkc_rom_kana_utils_foreach_katakana' from incompatible pointer type [-Wincompatible-pointer-types]
  252 |             foreach_katakana (kana, (uc) => {
      |                                             ^
      |                                             |
      |                                             void (*)(const void *, void *)
rom-kana-utils.c:636:44: note: expected 'GFunc' {aka 'void (*)(void *, void *)'} but argument is of type 'void (*)(const void *, void *)'
  636 |                                      GFunc func,
      |                                      ~~~~~~^~~~
rom-kana-utils.vala: In function 'kkc_rom_kana_utils_get_numeric':
rom-kana-utils.vala:320:60: error: passing argument 2 of 'kkc_rom_kana_utils_get_kanji_numeric' from incompatible pointer type [-Wincompatible-pointer-types]
  320 |                 return get_kanji_numeric (numeric, KanjiNumericTable);
      |                                                            ^~~~~~~~~~~
      |                                                            |
      |                                                            const gchar ** {aka const char **}
rom-kana-utils.c:1095:47: note: expected 'gchar **' {aka 'char **'} but argument is of type 'const gchar **' {aka 'const char **'}
 1095 |                                       gchar** num_table,
      |                                       ~~~~~~~~^~~~~~~~~
rom-kana-utils.vala:322:60: error: passing argument 2 of 'kkc_rom_kana_utils_get_kanji_numeric' from incompatible pointer type [-Wincompatible-pointer-types]
  322 |                 return get_kanji_numeric (numeric,
      |                                                            ^
      |                                                            |
      |                                                            const gchar ** {aka const char **}
rom-kana-utils.c:1095:47: note: expected 'gchar **' {aka 'char **'} but argument is of type 'const gchar **' {aka 'const char **'}
 1095 |                                       gchar** num_table,
      |                                       ~~~~~~~~^~~~~~~~~
rom-kana-utils.vala:322:158: error: passing argument 4 of 'kkc_rom_kana_utils_get_kanji_numeric' from incompatible pointer type [-Wincompatible-pointer-types]
  322 |                 return get_kanji_numeric (numeric,
      |                                                                                                                                                              ^                       
      |                                                                                                                                                              |
      |                                                                                                                                                              const gchar ** {aka const char **}
rom-kana-utils.c:1097:47: note: expected 'gchar **' {aka 'char **'} but argument is of type 'const gchar **' {aka 'const char **'}
 1097 |                                       gchar** num_pos_table,
      |                                       ~~~~~~~~^~~~~~~~~~~~~
rom-kana-utils.vala:326:60: error: passing argument 2 of 'kkc_rom_kana_utils_get_kanji_numeric' from incompatible pointer type [-Wincompatible-pointer-types]
  326 |                 return get_kanji_numeric (numeric,
      |                                                            ^
      |                                                            |
      |                                                            const gchar ** {aka const char **}
rom-kana-utils.c:1095:47: note: expected 'gchar **' {aka 'char **'} but argument is of type 'const gchar **' {aka 'const char **'}
 1095 |                                       gchar** num_table,
      |                                       ~~~~~~~~^~~~~~~~~
rom-kana-utils.vala:326:158: error: passing argument 4 of 'kkc_rom_kana_utils_get_kanji_numeric' from incompatible pointer type [-Wincompatible-pointer-types]
  326 |                 return get_kanji_numeric (numeric,
      |                                                                                                                                                              ^                       
      |                                                                                                                                                              |
      |                                                                                                                                                              const gchar ** {aka const char **}
rom-kana-utils.c:1097:47: note: expected 'gchar **' {aka 'char **'} but argument is of type 'const gchar **' {aka 'const char **'}
 1097 |                                       gchar** num_pos_table,
      |                                       ~~~~~~~~^~~~~~~~~~~~~
rom-kana-utils.c: In function 'kkc_rom_kana_utils_kana_table_entry_get_type':
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Wdiscarded-qualifiers]
  131 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
      |     ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:272:7: note: in expansion of macro 'g_atomic_pointer_get'
  272 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
rom-kana-utils.c:2158:13: note: in expansion of macro 'g_once_init_enter'
 2158 |         if (g_once_init_enter (&kkc_rom_kana_utils_kana_table_entry_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
rom-kana-utils.vala: In function 'kkc_rom_kana_utils_class_init':
rom-kana-utils.vala:373:20: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  373 |             foreach (var entry in KanaTable) {
      |                    ^
rom-kana-utils.vala:378:28: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  378 |                 foreach (var substitute in HankakuKatakanaSubstitute) {
      |                            ^
rom-kana-utils.c:2253:46: warning: unused variable '_substitute_collection_size_' [-Wunused-variable]
 2253 |                                         gint _substitute_collection_size_ = 0;
      |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
rom-kana-utils.c:2203:22: warning: unused variable '_entry_collection_size_' [-Wunused-variable]
 2203 |                 gint _entry_collection_size_ = 0;
      |                      ^~~~~~~~~~~~~~~~~~~~~~~
rom-kana-utils.c: In function 'kkc_rom_kana_utils_finalize':
rom-kana-utils.c:2555:27: warning: variable 'self' set but not used [-Wunused-but-set-variable]
 2555 |         KkcRomKanaUtils * self;
      |                           ^~~~
rom-kana-utils.c: In function 'kkc_rom_kana_utils_get_type':
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Wdiscarded-qualifiers]
  131 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
      |     ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:272:7: note: in expansion of macro 'g_atomic_pointer_get'
  272 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
rom-kana-utils.c:2576:13: note: in expansion of macro 'g_once_init_enter'
 2576 |         if (g_once_init_enter (&kkc_rom_kana_utils_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
rom-kana-utils.c: At top level:
rom-kana-utils.c:906:1: warning: 'block3_data_ref' defined but not used [-Wunused-function]
  906 | block3_data_ref (Block3Data* _data3_)
      | ^~~~~~~~~~~~~~~
rom-kana-utils.c:806:1: warning: 'block2_data_ref' defined but not used [-Wunused-function]
  806 | block2_data_ref (Block2Data* _data2_)
      | ^~~~~~~~~~~~~~~
rom-kana-utils.c:728:1: warning: 'block1_data_ref' defined but not used [-Wunused-function]
  728 | block1_data_ref (Block1Data* _data1_)
      | ^~~~~~~~~~~~~~~
rom-kana-utils.c:58:20: warning: 'kkc_rom_kana_utils_properties' defined but not used [-Wunused-variable]
   58 | static GParamSpec* kkc_rom_kana_utils_properties[KKC_ROM_KANA_UTILS_NUM_PROPERTIES];
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:1020: libkkc_la-rom-kana-utils.lo] Error 1
  CC       libkkc_la-state.lo
state.c: In function '_vala_lambda3_':
state.c:1522:19: warning: variable 'self' set but not used [-Wunused-but-set-variable]
 1522 |         KkcState* self;
      |                   ^~~~
state.c: In function 'kkc_state_select_sentence_for_dictionary':
state.c:1680:30: warning: variable '_tmp14__length1' set but not used [-Wunused-but-set-variable]
 1680 |                         gint _tmp14__length1;
      |                              ^~~~~~~~~~~~~~~
state.c:1677:33: warning: variable '_tmp13_' set but not used [-Wunused-but-set-variable]
 1677 |                         gchar** _tmp13_;
      |                                 ^~~~~~~
state.c:1673:30: warning: variable '__segments_size_' set but not used [-Wunused-but-set-variable]
 1673 |                         gint __segments_size_;
      |                              ^~~~~~~~~~~~~~~~
state.c: In function 'kkc_state_select_sentence':
state.c:1897:38: warning: variable '_tmp7__length1' set but not used [-Wunused-but-set-variable]
 1897 |                                 gint _tmp7__length1;
      |                                      ^~~~~~~~~~~~~~
state.c:1894:41: warning: variable '_tmp6_' set but not used [-Wunused-but-set-variable]
 1894 |                                 gchar** _tmp6_;
      |                                         ^~~~~~
state.c:1837:14: warning: variable '_sequence_size_' set but not used [-Wunused-but-set-variable]
 1837 |         gint _sequence_size_;
      |              ^~~~~~~~~~~~~~~
state.c: In function 'kkc_state_lookup_single_for_dictionary':
state.c:2118:22: warning: variable '_tmp13__length1' set but not used [-Wunused-but-set-variable]
 2118 |                 gint _tmp13__length1;
      |                      ^~~~~~~~~~~~~~~
state.c:2200:30: warning: variable '_tmp30__length1' set but not used [-Wunused-but-set-variable]
 2200 |                         gint _tmp30__length1;
      |                              ^~~~~~~~~~~~~~~
state.c:2058:14: warning: variable '__candidates_size_' set but not used [-Wunused-but-set-variable]
 2058 |         gint __candidates_size_ = 0;
      |              ^~~~~~~~~~~~~~~~~~
state.c: In function 'kkc_state_lookup':
state.c:3033:22: warning: unused variable '__segment_collection_size_' [-Wunused-variable]
 3033 |                 gint __segment_collection_size_ = 0;
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
state.c:2647:14: warning: variable '__segments_size_' set but not used [-Wunused-but-set-variable]
 2647 |         gint __segments_size_;
      |              ^~~~~~~~~~~~~~~~
state.c:2641:14: warning: variable '_tmp70__length1' set but not used [-Wunused-but-set-variable]
 2641 |         gint _tmp70__length1;
      |              ^~~~~~~~~~~~~~~
state.c: In function 'kkc_state_lookup_template_for_dictionary':
state.c:3275:30: warning: unused variable '_candidate_collection_size_' [-Wunused-variable]
 3275 |                         gint _candidate_collection_size_ = 0;
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
state.c:3223:14: warning: variable '__candidates_size_' set but not used [-Wunused-but-set-variable]
 3223 |         gint __candidates_size_ = 0;
      |              ^~~~~~~~~~~~~~~~~~
state.c: In function 'kkc_state_merge_possible_okurigana_segments':
state.c:3751:53: warning: variable '_tmp50_' set but not used [-Wunused-but-set-variable]
 3751 |                                         KkcSegment* _tmp50_;
      |                                                     ^~~~~~~
state.c:3740:53: warning: variable '_tmp39_' set but not used [-Wunused-but-set-variable]
 3740 |                                         KkcSegment* _tmp39_;
      |                                                     ^~~~~~~
state.c: In function 'kkc_state_convert_sentence':
state.c:3914:14: warning: variable '_tmp9__length1' set but not used [-Wunused-but-set-variable]
 3914 |         gint _tmp9__length1;
      |              ^~~~~~~~~~~~~~
state.c:3911:14: warning: variable '__segments_size_' set but not used [-Wunused-but-set-variable]
 3911 |         gint __segments_size_;
      |              ^~~~~~~~~~~~~~~~
state.c:3904:14: warning: variable '__tmp1__size_' set but not used [-Wunused-but-set-variable]
 3904 |         gint __tmp1__size_;
      |              ^~~~~~~~~~~~~
state.c: In function 'kkc_state_apply_constraint_for_dictionary':
state.c:4609:86: warning: variable '_tmp48__length1' set but not used [-Wunused-but-set-variable]
 4609 |                                                                                 gint _tmp48__length1;
      |                                                                                      ^~~~~~~~~~~~~~~
state.c:4674:78: warning: variable '_tmp62__length1' set but not used [-Wunused-but-set-variable]
 4674 |                                                                         gint _tmp62__length1;
      |                                                                              ^~~~~~~~~~~~~~~
state.c:4513:46: warning: variable '_tmp34__length1' set but not used [-Wunused-but-set-variable]
 4513 |                                         gint _tmp34__length1;
      |                                              ^~~~~~~~~~~~~~~
state.c:4783:78: warning: variable '_tmp78__length1' set but not used [-Wunused-but-set-variable]
 4783 |                                                                         gint _tmp78__length1;
      |                                                                              ^~~~~~~~~~~~~~~
state.c:4872:62: warning: variable '_tmp89__length1' set but not used [-Wunused-but-set-variable]
 4872 |                                                         gint _tmp89__length1;
      |                                                              ^~~~~~~~~~~~~~~
state.c:4868:63: warning: variable '_tmp87_' set but not used [-Wunused-but-set-variable]
 4868 |                                                         gint* _tmp87_;
      |                                                               ^~~~~~~
state.c:4486:38: warning: variable '_tmp92__length1' set but not used [-Wunused-but-set-variable]
 4486 |                                 gint _tmp92__length1;
      |                                      ^~~~~~~~~~~~~~~
state.c:4479:39: warning: variable '_tmp25_' set but not used [-Wunused-but-set-variable]
 4479 |                                 gint* _tmp25_;
      |                                       ^~~~~~~
state.c:4413:30: warning: variable '__constraint_size_' set but not used [-Wunused-but-set-variable]
 4413 |                         gint __constraint_size_ = 0;
      |                              ^~~~~~~~~~~~~~~~~~
state.vala:626:10: error: assignment to 'gint *' {aka 'int *'} from incompatible pointer type 'void **' [-Wincompatible-pointer-types]
  626 |             var _segments = decoder.decode (input,
      |          ^
state.c:4334:14: warning: variable '__segments_size_' set but not used [-Wunused-but-set-variable]
 4334 |         gint __segments_size_;
      |              ^~~~~~~~~~~~~~~~
state.c:4328:14: warning: variable '_tmp99__length1' set but not used [-Wunused-but-set-variable]
 4328 |         gint _tmp99__length1;
      |              ^~~~~~~~~~~~~~~
state.c:4315:17: warning: variable '_tmp5_' set but not used [-Wunused-but-set-variable]
 4315 |         gchar** _tmp5_;
      |                 ^~~~~~
state.c:4313:17: warning: variable '_tmp4_' set but not used [-Wunused-but-set-variable]
 4313 |         gchar** _tmp4_;
      |                 ^~~~~~
state.c:4309:14: warning: variable '_sequence_size_' set but not used [-Wunused-but-set-variable]
 4309 |         gint _sequence_size_;
      |              ^~~~~~~~~~~~~~~
state.c: In function 'kkc_state_apply_phrase_for_dictionary':
state.c:5136:38: warning: variable '_tmp10__length1' set but not used [-Wunused-but-set-variable]
 5136 |                                 gint _tmp10__length1;
      |                                      ^~~~~~~~~~~~~~~
state.c:5323:62: warning: variable '_tmp43__length1' set but not used [-Wunused-but-set-variable]
 5323 |                                                         gint _tmp43__length1;
      |                                                              ^~~~~~~~~~~~~~~
state.c:5316:65: warning: variable '_tmp38_' set but not used [-Wunused-but-set-variable]
 5316 |                                                         gchar** _tmp38_;
      |                                                                 ^~~~~~~
state.c:5302:41: warning: variable '_tmp45_' set but not used [-Wunused-but-set-variable]
 5302 |                                 gchar** _tmp45_;
      |                                         ^~~~~~~
state.c:5245:30: warning: variable '__value_size_' set but not used [-Wunused-but-set-variable]
 5245 |                         gint __value_size_ = 0;
      |                              ^~~~~~~~~~~~~
state.c:5093:17: warning: variable '_tmp19_' set but not used [-Wunused-but-set-variable]
 5093 |         gchar** _tmp19_;
      |                 ^~~~~~~
state.c:5091:17: warning: variable '_tmp18_' set but not used [-Wunused-but-set-variable]
 5091 |         gchar** _tmp18_;
      |                 ^~~~~~~
state.c:5087:14: warning: variable '_sequence_size_' set but not used [-Wunused-but-set-variable]
 5087 |         gint _sequence_size_;
      |              ^~~~~~~~~~~~~~~
state.c: In function 'kkc_state_resize_segment':
state.c:5727:46: warning: variable '_tmp44__length1' set but not used [-Wunused-but-set-variable]
 5727 |                                         gint _tmp44__length1;
      |                                              ^~~~~~~~~~~~~~~
state.c:5724:49: warning: variable '_tmp43_' set but not used [-Wunused-but-set-variable]
 5724 |                                         gchar** _tmp43_;
      |                                                 ^~~~~~~
state.c:5829:46: warning: variable '_tmp65__length1' set but not used [-Wunused-but-set-variable]
 5829 |                                         gint _tmp65__length1;
      |                                              ^~~~~~~~~~~~~~~
state.c:5823:49: warning: variable '_tmp61_' set but not used [-Wunused-but-set-variable]
 5823 |                                         gchar** _tmp61_;
      |                                                 ^~~~~~~
state.c:5544:22: warning: variable '_output_size_' set but not used [-Wunused-but-set-variable]
 5544 |                 gint _output_size_;
      |                      ^~~~~~~~~~~~~
state.c: In function '_vala_lambda10_':
state.c:5918:19: warning: variable 'self' set but not used [-Wunused-but-set-variable]
 5918 |         KkcState* self;
      |                   ^~~~
state.c: In function '_vala_lambda11_':
state.c:6062:22: warning: unused variable '_word_collection_size_' [-Wunused-variable]
 6062 |                 gint _word_collection_size_ = 0;
      |                      ^~~~~~~~~~~~~~~~~~~~~~
state.c:6032:14: warning: variable '__completion_size_' set but not used [-Wunused-but-set-variable]
 6032 |         gint __completion_size_;
      |              ^~~~~~~~~~~~~~~~~~
state.vala: In function 'kkc_state_set_input_mode':
state.vala:38:30: warning: comparison between 'KkcInputMode' and 'enum <anonymous>' [-Wenum-compare]
   38 |                 if (_input_mode >= KanaMode.HIRAGANA &&
      |                              ^~
state.vala:39:36: warning: comparison between 'KkcInputMode' and 'enum <anonymous>' [-Wenum-compare]
   39 |                     _input_mode <= KanaMode.WIDE_LATIN)
      |                                    ^~
In file included from /usr/include/glib-2.0/glib/gthread.h:34,
                 from /usr/include/glib-2.0/glib/gasyncqueue.h:34,
                 from /usr/include/glib-2.0/glib.h:34,
                 from state.c:22:
state.c: In function 'kkc_state_get_type':
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Wdiscarded-qualifiers]
  131 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
      |     ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:272:7: note: in expansion of macro 'g_atomic_pointer_get'
  272 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
state.c:6611:13: note: in expansion of macro 'g_once_init_enter'
 6611 |         if (g_once_init_enter (&kkc_state_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
state.c: In function 'kkc_command_handler_get_type':
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Wdiscarded-qualifiers]
  131 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
      |     ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:272:7: note: in expansion of macro 'g_atomic_pointer_get'
  272 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
state.c:6761:13: note: in expansion of macro 'g_once_init_enter'
 6761 |         if (g_once_init_enter (&kkc_command_handler_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
state.c: In function 'kkc_callback_command_handler_finalize':
state.c:6866:37: warning: variable 'self' set but not used [-Wunused-but-set-variable]
 6866 |         KkcCallbackCommandHandler * self;
      |                                     ^~~~
state.c: In function 'kkc_callback_command_handler_get_type':
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Wdiscarded-qualifiers]
  131 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
      |     ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:272:7: note: in expansion of macro 'g_atomic_pointer_get'
  272 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
state.c:6890:13: note: in expansion of macro 'g_once_init_enter'
 6890 |         if (g_once_init_enter (&kkc_callback_command_handler_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
state.c: In function 'kkc_state_handler_get_type':
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Wdiscarded-qualifiers]
  131 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
      |     ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:272:7: note: in expansion of macro 'g_atomic_pointer_get'
  272 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
state.c:7156:13: note: in expansion of macro 'g_once_init_enter'
 7156 |         if (g_once_init_enter (&kkc_state_handler_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
state.c: At top level:
state.c:5990:1: warning: 'block10_data_ref' defined but not used [-Wunused-function]
 5990 | block10_data_ref (Block10Data* _data10_)
      | ^~~~~~~~~~~~~~~~
state.c:5884:1: warning: 'block9_data_ref' defined but not used [-Wunused-function]
 5884 | block9_data_ref (Block9Data* _data9_)
      | ^~~~~~~~~~~~~~~
state.c:4978:1: warning: 'block8_data_ref' defined but not used [-Wunused-function]
 4978 | block8_data_ref (Block8Data* _data8_)
      | ^~~~~~~~~~~~~~~
state.c:3384:1: warning: 'block7_data_ref' defined but not used [-Wunused-function]
 3384 | block7_data_ref (Block7Data* _data7_)
      | ^~~~~~~~~~~~~~~
state.c:2246:1: warning: 'block6_data_ref' defined but not used [-Wunused-function]
 2246 | block6_data_ref (Block6Data* _data6_)
      | ^~~~~~~~~~~~~~~
state.c:1764:1: warning: 'block5_data_ref' defined but not used [-Wunused-function]
 1764 | block5_data_ref (Block5Data* _data5_)
      | ^~~~~~~~~~~~~~~
state.c:1488:1: warning: 'block4_data_ref' defined but not used [-Wunused-function]
 1488 | block4_data_ref (Block4Data* _data4_)
      | ^~~~~~~~~~~~~~~
state.c:187:20: warning: 'kkc_state_handler_properties' defined but not used [-Wunused-variable]
  187 | static GParamSpec* kkc_state_handler_properties[KKC_STATE_HANDLER_NUM_PROPERTIES];
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
state.c:181:20: warning: 'kkc_callback_command_handler_properties' defined but not used [-Wunused-variable]
  181 | static GParamSpec* kkc_callback_command_handler_properties[KKC_CALLBACK_COMMAND_HANDLER_NUM_PROPERTIES];
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:1055: libkkc_la-state.lo] Error 1
  CC       libkkc_la-dictionary.lo
dictionary.c: In function 'kkc_dictionary_utils_split_candidates':
dictionary.c:345:46: warning: variable '_tmp22__length1' set but not used [-Wunused-but-set-variable]
  345 |                                         gint _tmp22__length1;
      |                                              ^~~~~~~~~~~~~~~
dictionary.c:341:46: warning: variable '_tmp19__length1' set but not used [-Wunused-but-set-variable]
  341 |                                         gint _tmp19__length1;
      |                                              ^~~~~~~~~~~~~~~
dictionary.c:287:38: warning: variable '_tmp27__length1' set but not used [-Wunused-but-set-variable]
  287 |                                 gint _tmp27__length1;
      |                                      ^~~~~~~~~~~~~~~
dictionary.c:284:41: warning: variable '_tmp18_' set but not used [-Wunused-but-set-variable]
  284 |                                 gchar** _tmp18_;
      |                                         ^~~~~~~
dictionary.c:281:38: warning: variable '_text_annotation_size_' set but not used [-Wunused-but-set-variable]
  281 |                                 gint _text_annotation_size_;
      |                                      ^~~~~~~~~~~~~~~~~~~~~~
dictionary.c:273:38: warning: variable '_tmp12__length1' set but not used [-Wunused-but-set-variable]
  273 |                                 gint _tmp12__length1;
      |                                      ^~~~~~~~~~~~~~~
dictionary.c:269:41: warning: variable '_tmp11_' set but not used [-Wunused-but-set-variable]
  269 |                                 gchar** _tmp11_;
      |                                         ^~~~~~~
dictionary.c:212:14: warning: variable '_candidates_size_' set but not used [-Wunused-but-set-variable]
  212 |         gint _candidates_size_;
      |              ^~~~~~~~~~~~~~~~~
dictionary.c:208:17: warning: variable '_tmp7_' set but not used [-Wunused-but-set-variable]
  208 |         gchar** _tmp7_;
      |                 ^~~~~~
dictionary.c:206:14: warning: variable '_strv_size_' set but not used [-Wunused-but-set-variable]
  206 |         gint _strv_size_;
      |              ^~~~~~~~~~~
dictionary.c: In function 'kkc_dictionary_utils_join_candidates':
dictionary.c:773:38: warning: variable '_tmp3__length1' set but not used [-Wunused-but-set-variable]
  773 |                                 gint _tmp3__length1;
      |                                      ^~~~~~~~~~~~~~
dictionary.c:741:14: warning: variable '_strv_size_' set but not used [-Wunused-but-set-variable]
  741 |         gint _strv_size_;
      |              ^~~~~~~~~~~
dictionary.vala: In function 'kkc_dictionary_utils_unescape':
dictionary.vala:95:68: error: passing argument 6 of 'g_regex_replace_eval' from incompatible pointer type [-Wincompatible-pointer-types]
   95 |                 return escape_regex.replace_eval (input,
      |                                                                    ^
      |                                                                    |
      |                                                                    gboolean (*)(GMatchInfo *, GString *, void *) {aka int (*)(struct _GMatchInfo *, struct _GString *, void *)}
In file included from /usr/include/glib-2.0/glib.h:78,
                 from /usr/include/glib-2.0/gobject/gbinding.h:30,
                 from /usr/include/glib-2.0/glib-object.h:24,
                 from dictionary.c:22:
/usr/include/glib-2.0/glib/gregex.h:558:71: note: expected 'GRegexEvalCallback' {aka 'int (*)(const struct _GMatchInfo *, struct _GString *, void *)'} but argument is of type 'gboolean (*)(GMatchInfo *, GString *, void *)' {aka 'int (*)(struct _GMatchInfo *, struct _GString *, void *)'}
  558 |                                                  GRegexEvalCallback   eval,
      |                                                  ~~~~~~~~~~~~~~~~~~~~~^~~~
dictionary.c: In function 'kkc_dictionary_utils_finalize':
dictionary.c:1181:30: warning: variable 'self' set but not used [-Wunused-but-set-variable]
 1181 |         KkcDictionaryUtils * self;
      |                              ^~~~
In file included from /usr/include/glib-2.0/glib/gthread.h:34,
                 from /usr/include/glib-2.0/glib/gasyncqueue.h:34,
                 from /usr/include/glib-2.0/glib.h:34:
dictionary.c: In function 'kkc_dictionary_utils_get_type':
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Wdiscarded-qualifiers]
  131 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
      |     ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:272:7: note: in expansion of macro 'g_atomic_pointer_get'
  272 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
dictionary.c:1202:13: note: in expansion of macro 'g_once_init_enter'
 1202 |         if (g_once_init_enter (&kkc_dictionary_utils_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
dictionary.c: In function 'kkc_dictionary_get_type':
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Wdiscarded-qualifiers]
  131 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
      |     ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:272:7: note: in expansion of macro 'g_atomic_pointer_get'
  272 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
dictionary.c:1286:13: note: in expansion of macro 'g_once_init_enter'
 1286 |         if (g_once_init_enter (&kkc_dictionary_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
dictionary.c: In function 'kkc_dictionary_error_get_type':
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Wdiscarded-qualifiers]
  131 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
      |     ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:272:7: note: in expansion of macro 'g_atomic_pointer_get'
  272 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
dictionary.c:1315:13: note: in expansion of macro 'g_once_init_enter'
 1315 |         if (g_once_init_enter (&kkc_dictionary_error_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
dictionary.c: At top level:
dictionary.c:42:20: warning: 'kkc_dictionary_utils_properties' defined but not used [-Wunused-variable]
   42 | static GParamSpec* kkc_dictionary_utils_properties[KKC_DICTIONARY_UTILS_NUM_PROPERTIES];
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:1083: libkkc_la-dictionary.lo] Error 1
  CC       libkkc_la-system-segment-dictionary.lo
In file included from /usr/include/glib-2.0/glib.h:64,
                 from ../libkkc/libkkc.h:6,
                 from system-segment-dictionary.c:22:
system-segment-dictionary.vala: In function 'kkc_system_segment_dictionary_read_until':
/usr/include/glib-2.0/glib/gmessages.h:668:16: error: returning 'void *' from a function with return type 'gboolean' {aka 'int'} makes integer from pointer without a cast [-Wint-conversion]
  668 |         return (val); \
      |                ^
system-segment-dictionary.vala:73:2: note: in expansion of macro 'g_return_val_if_fail'
   73 |             return_val_if_fail (offset < mmap.get_length (), null);
      |  ^          ~~~~~~~~~
system-segment-dictionary.c: In function 'kkc_system_segment_dictionary_real_lookup_candidates':
system-segment-dictionary.c:1096:15: warning: variable 'pos' set but not used [-Wunused-but-set-variable]
 1096 |         gchar* _midasi = NULL;
      |               ^~~
system-segment-dictionary.vala: In function 'kkc_system_segment_dictionary_real_complete':
system-segment-dictionary.vala:255:11: error: assignment to 'gchar **' {aka 'char **'} from incompatible pointer type 'void **' [-Wincompatible-pointer-types]
  255 |                 return completion.to_array ();
      |           ^
system-segment-dictionary.vala:318:10: error: assignment to 'gchar **' {aka 'char **'} from incompatible pointer type 'void **' [-Wincompatible-pointer-types]
  318 |             return completion.to_array ();
      |          ^
In file included from /usr/include/glib-2.0/glib/gthread.h:34,
                 from /usr/include/glib-2.0/glib/gasyncqueue.h:34,
                 from /usr/include/glib-2.0/glib.h:34:
system-segment-dictionary.c: In function 'kkc_system_segment_dictionary_get_type':
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Wdiscarded-qualifiers]
  131 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
      |     ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:272:7: note: in expansion of macro 'g_atomic_pointer_get'
  272 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
system-segment-dictionary.c:2305:13: note: in expansion of macro 'g_once_init_enter'
 2305 |         static volatile gsize kkc_system_segment_dictionary_type_id__once = 0;
      |             ^~~~~~~~~~~~~~~~~
system-segment-dictionary.c: At top level:
system-segment-dictionary.c:43:20: warning: 'kkc_system_segment_dictionary_properties' defined but not used [-Wunused-variable]
   43 | static GParamSpec* kkc_system_segment_dictionary_properties[KKC_SYSTEM_SEGMENT_DICTIONARY_NUM_PROPERTIES];
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:1097: libkkc_la-system-segment-dictionary.lo] Error 1
  CC       libkkc_la-user-segment-dictionary.lo
user-segment-dictionary.vala: In function 'kkc_user_segment_dictionary_load':
user-segment-dictionary.vala:27:38: error: passing argument 3 of 'g_file_load_contents' from incompatible pointer type [-Wincompatible-pointer-types]
   27 |             file.load_contents (null, out contents, out etag);
      |                                      ^~~~~~~
      |                                      |
      |                                      guint8 ** {aka unsigned char **}
In file included from /usr/include/glib-2.0/gio/gio.h:81,
                 from ../libkkc/libkkc.h:8,
                 from user-segment-dictionary.c:22:
/usr/include/glib-2.0/gio/gfile.h:1264:71: note: expected 'char **' but argument is of type 'guint8 **' {aka 'unsigned char **'}
 1264 |                                               char                  **contents,
      |                                               ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
user-segment-dictionary.c:690:30: warning: unused variable '_c_collection_size_' [-Wunused-variable]
  690 |                         gint _c_collection_size_ = 0;
      |                              ^~~~~~~~~~~~~~~~~~~
user-segment-dictionary.c:452:22: warning: variable '_candidates_size_' set but not used [-Wunused-but-set-variable]
  452 |                 gint _candidates_size_;
      |                      ^~~~~~~~~~~~~~~~~
user-segment-dictionary.c:441:22: warning: variable '_tmp50__length1' set but not used [-Wunused-but-set-variable]
  441 |                 gint _tmp50__length1;
      |                      ^~~~~~~~~~~~~~~
user-segment-dictionary.c:436:22: warning: variable '_tmp47__length1' set but not used [-Wunused-but-set-variable]
  436 |                 gint _tmp47__length1;
      |                      ^~~~~~~~~~~~~~~
user-segment-dictionary.c:432:25: warning: variable '_tmp44_' set but not used [-Wunused-but-set-variable]
  432 |                 gchar** _tmp44_;
      |                         ^~~~~~~
user-segment-dictionary.c:431:22: warning: variable '_strv_size_' set but not used [-Wunused-but-set-variable]
  431 |                 gint _strv_size_;
      |                      ^~~~~~~~~~~
user-segment-dictionary.c:180:15: warning: variable 'length' set but not used [-Wunused-but-set-variable]
  180 |         gsize length = 0UL;
      |               ^~~~~~
user-segment-dictionary.c:164:14: warning: variable '_contents_size_' set but not used [-Wunused-but-set-variable]
  164 |         gint _contents_size_ = 0;
      |              ^~~~~~~~~~~~~~~
user-segment-dictionary.vala: In function 'kkc_user_segment_dictionary_write_entries':
user-segment-dictionary.vala:127:11: error: assignment to 'KkcCandidate **' {aka 'struct _KkcCandidate **'} from incompatible pointer type 'void **' [-Wincompatible-pointer-types]
  127 |                 var line = "%s %s\n".printf (
      |           ^
user-segment-dictionary.c: In function 'string_get_data':
user-segment-dictionary.c:1048:14: warning: variable '_res_size_' set but not used [-Wunused-but-set-variable]
 1048 |         gint _res_size_;
      |              ^~~~~~~~~~
user-segment-dictionary.vala: In function 'kkc_user_segment_dictionary_real_save':
user-segment-dictionary.vala:158:36: warning: pointer targets in passing argument 2 of 'g_file_replace_contents' differ in signedness [-Wpointer-sign]
  158 |             file.replace_contents (builder.str.data,
      |                                    ^~~~~~~
      |                                    |
      |                                    guint8 * {aka unsigned char *}
/usr/include/glib-2.0/gio/gfile.h:1295:71: note: expected 'const char *' but argument is of type 'guint8 *' {aka 'unsigned char *'}
 1295 |                                               const char             *contents,
      |                                               ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
user-segment-dictionary.vala: In function 'kkc_user_segment_dictionary_real_lookup_candidates':
user-segment-dictionary.vala:182:20: error: assignment to 'KkcCandidate **' {aka 'struct _KkcCandidate **'} from incompatible pointer type 'void **' [-Wincompatible-pointer-types]
  182 |                 candidates = entries.get (midasi).to_array ();
      |                    ^
user-segment-dictionary.vala: In function 'kkc_user_segment_dictionary_real_complete':
user-segment-dictionary.vala:221:10: error: assignment to 'gchar **' {aka 'char **'} from incompatible pointer type 'void **' [-Wincompatible-pointer-types]
  221 |             return completion.to_array ();
      |          ^
In file included from /usr/include/glib-2.0/glib/gthread.h:34,
                 from /usr/include/glib-2.0/glib/gasyncqueue.h:34,
                 from /usr/include/glib-2.0/glib.h:34,
                 from ../libkkc/libkkc.h:6:
user-segment-dictionary.c: In function 'kkc_user_segment_dictionary_get_type':
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Wdiscarded-qualifiers]
  131 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
      |     ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:272:7: note: in expansion of macro 'g_atomic_pointer_get'
  272 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
user-segment-dictionary.c:2161:13: note: in expansion of macro 'g_once_init_enter'
 2161 |         if (g_once_init_enter (&kkc_user_segment_dictionary_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
user-segment-dictionary.c: At top level:
user-segment-dictionary.c:35:20: warning: 'kkc_user_segment_dictionary_properties' defined but not used [-Wunused-variable]
   35 | static GParamSpec* kkc_user_segment_dictionary_properties[KKC_USER_SEGMENT_DICTIONARY_NUM_PROPERTIES];
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:1104: libkkc_la-user-segment-dictionary.lo] Error 1
  CC       libkkc_la-user-sentence-dictionary.lo
In file included from /usr/include/glib-2.0/glib/gthread.h:34,
                 from /usr/include/glib-2.0/glib/gasyncqueue.h:34,
                 from /usr/include/glib-2.0/glib.h:34,
                 from ../libkkc/libkkc.h:6,
                 from user-sentence-dictionary.c:22:
user-sentence-dictionary.c: In function 'kkc_user_sentence_dictionary_user_sentence_state_get_type':
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Wdiscarded-qualifiers]
  131 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
      |     ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:272:7: note: in expansion of macro 'g_atomic_pointer_get'
  272 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
user-sentence-dictionary.c:130:13: note: in expansion of macro 'g_once_init_enter'
  130 |         if (g_once_init_enter (&kkc_user_sentence_dictionary_user_sentence_state_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
user-sentence-dictionary.vala: In function 'kkc_user_sentence_dictionary_load':
user-sentence-dictionary.vala:43:38: error: passing argument 3 of 'g_file_load_contents' from incompatible pointer type [-Wincompatible-pointer-types]
   43 |             file.load_contents (null, out contents, out etag);
      |                                      ^~~~~~~
      |                                      |
      |                                      guint8 ** {aka unsigned char **}
In file included from /usr/include/glib-2.0/gio/gio.h:81,
                 from ../libkkc/libkkc.h:8:
/usr/include/glib-2.0/gio/gfile.h:1264:71: note: expected 'char **' but argument is of type 'guint8 **' {aka 'unsigned char **'}
 1264 |                                               char                  **contents,
      |                                               ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
user-sentence-dictionary.c:778:46: warning: unused variable '_str_collection_size_' [-Wunused-variable]
  778 |                                         gint _str_collection_size_ = 0;
      |                                              ^~~~~~~~~~~~~~~~~~~~~
user-sentence-dictionary.c:740:38: warning: variable '_strv_size_' set but not used [-Wunused-but-set-variable]
  740 |                                 gint _strv_size_;
      |                                      ^~~~~~~~~~~
user-sentence-dictionary.c:878:46: warning: unused variable '_str_collection_size_' [-Wunused-variable]
  878 |                                         gint _str_collection_size_ = 0;
      |                                              ^~~~~~~~~~~~~~~~~~~~~
user-sentence-dictionary.c:840:38: warning: variable '_strv_size_' set but not used [-Wunused-but-set-variable]
  840 |                                 gint _strv_size_;
      |                                      ^~~~~~~~~~~
user-sentence-dictionary.c:302:15: warning: variable 'length' set but not used [-Wunused-but-set-variable]
  302 |         gsize length = 0UL;
      |               ^~~~~~
user-sentence-dictionary.c:286:14: warning: variable '_contents_size_' set but not used [-Wunused-but-set-variable]
  286 |         gint _contents_size_ = 0;
      |              ^~~~~~~~~~~~~~~
user-sentence-dictionary.c: In function 'kkc_user_sentence_dictionary_write_constraint_entries':
user-sentence-dictionary.c:1406:46: warning: variable '_tmp13__length1' set but not used [-Wunused-but-set-variable]
 1406 |                                         gint _tmp13__length1;
      |                                              ^~~~~~~~~~~~~~~
user-sentence-dictionary.c:1403:49: warning: variable '_tmp12_' set but not used [-Wunused-but-set-variable]
 1403 |                                         gchar** _tmp12_;
      |                                                 ^~~~~~~
user-sentence-dictionary.c:1346:22: warning: variable '_strv_size_' set but not used [-Wunused-but-set-variable]
 1346 |                 gint _strv_size_;
      |                      ^~~~~~~~~~~
user-sentence-dictionary.c: In function 'kkc_user_sentence_dictionary_write_phrase_entries':
user-sentence-dictionary.c:1587:46: warning: variable '_tmp13__length1' set but not used [-Wunused-but-set-variable]
 1587 |                                         gint _tmp13__length1;
      |                                              ^~~~~~~~~~~~~~~
user-sentence-dictionary.c:1584:49: warning: variable '_tmp12_' set but not used [-Wunused-but-set-variable]
 1584 |                                         gchar** _tmp12_;
      |                                                 ^~~~~~~
user-sentence-dictionary.c:1527:22: warning: variable '_strv_size_' set but not used [-Wunused-but-set-variable]
 1527 |                 gint _strv_size_;
      |                      ^~~~~~~~~~~
user-sentence-dictionary.c: In function 'string_get_data':
user-sentence-dictionary.c:1715:14: warning: variable '_res_size_' set but not used [-Wunused-but-set-variable]
 1715 |         gint _res_size_;
      |              ^~~~~~~~~~
user-sentence-dictionary.vala: In function 'kkc_user_sentence_dictionary_real_save':
user-sentence-dictionary.vala:185:36: warning: pointer targets in passing argument 2 of 'g_file_replace_contents' differ in signedness [-Wpointer-sign]
  185 |             file.replace_contents (contents.data,
      |                                    ^~~~~~~
      |                                    |
      |                                    guint8 * {aka unsigned char *}
/usr/include/glib-2.0/gio/gfile.h:1295:71: note: expected 'const char *' but argument is of type 'guint8 *' {aka 'unsigned char *'}
 1295 |                                               const char             *contents,
      |                                               ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
user-sentence-dictionary.vala: In function 'kkc_user_sentence_dictionary_real_lookup_constraint':
user-sentence-dictionary.vala:217:19: error: assignment to 'gint *' {aka 'int *'} from incompatible pointer type 'void **' [-Wincompatible-pointer-types]
  217 |             constraint = entry.to_array ();
      |                   ^
user-sentence-dictionary.vala: In function 'kkc_user_sentence_dictionary_real_lookup_phrase':
user-sentence-dictionary.vala:231:15: error: assignment to 'gchar **' {aka 'char **'} from incompatible pointer type 'void **' [-Wincompatible-pointer-types]
  231 |             phrase = entry.to_array ();
      |               ^
user-sentence-dictionary.c: In function 'kkc_user_sentence_dictionary_real_select_segments':
user-sentence-dictionary.c:2318:22: warning: unused variable '_segment_collection_size_' [-Wunused-variable]
 2318 |                 gint _segment_collection_size_ = 0;
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~
user-sentence-dictionary.vala:260:8: error: assignment to 'gchar **' {aka 'char **'} from incompatible pointer type 'void **' [-Wincompatible-pointer-types]
  260 |             var array = input.to_array ();
      |        ^
user-sentence-dictionary.c:2283:17: warning: variable '_tmp20_' set but not used [-Wunused-but-set-variable]
 2283 |         gchar** _tmp20_;
      |                 ^~~~~~~
user-sentence-dictionary.c:2281:14: warning: variable '_array_size_' set but not used [-Wunused-but-set-variable]
 2281 |         gint _array_size_;
      |              ^~~~~~~~~~~~
user-sentence-dictionary.c: In function 'kkc_user_sentence_dictionary_get_type':
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Wdiscarded-qualifiers]
  131 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
      |     ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:272:7: note: in expansion of macro 'g_atomic_pointer_get'
  272 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
user-sentence-dictionary.c:2723:13: note: in expansion of macro 'g_once_init_enter'
 2723 |         if (g_once_init_enter (&kkc_user_sentence_dictionary_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
user-sentence-dictionary.c: At top level:
user-sentence-dictionary.c:35:20: warning: 'kkc_user_sentence_dictionary_properties' defined but not used [-Wunused-variable]
   35 | static GParamSpec* kkc_user_sentence_dictionary_properties[KKC_USER_SENTENCE_DICTIONARY_NUM_PROPERTIES];
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:1118: libkkc_la-user-sentence-dictionary.lo] Error 1
  CC       libkkc_la-utils.lo
utils.c: In function 'kkc_utils_build_data_path':
utils.c:368:30: warning: unused variable '_element_collection_size_' [-Wunused-variable]
  368 |                         gint _element_collection_size_ = 0;
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~
utils.c:347:22: warning: variable '_elements_size_' set but not used [-Wunused-but-set-variable]
  347 |                 gint _elements_size_;
      |                      ^~~~~~~~~~~~~~~
utils.vala:44:10: error: assignment to 'gchar **' {aka 'char **'} from incompatible pointer type 'void **' [-Wincompatible-pointer-types]
   44 |             return dirs.to_array ();
      |          ^
utils.vala: In function 'kkc_utils_split_utf8':
utils.vala:54:9: error: assignment to 'gchar **' {aka 'char **'} from incompatible pointer type 'void **' [-Wincompatible-pointer-types]
   54 |             return result.to_array ();
      |         ^
In file included from /usr/include/glib-2.0/glib/gthread.h:34,
                 from /usr/include/glib-2.0/glib/gasyncqueue.h:34,
                 from /usr/include/glib-2.0/glib.h:34,
                 from utils.c:24:
utils.c: In function 'kkc_prefix_entry_get_type':
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Wdiscarded-qualifiers]
  131 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
      |     ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:272:7: note: in expansion of macro 'g_atomic_pointer_get'
  272 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
utils.c:876:13: note: in expansion of macro 'g_once_init_enter'
  876 |         if (g_once_init_enter (&kkc_prefix_entry_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
utils.vala: In function 'kkc_key_event_utils_keyval_name':
utils.vala:148:48: warning: passing argument 1 of 'kkc_key_event_utils_bsearch_keysyms' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  148 |             var entry = bsearch_keysyms (keysym_to_name,
      |                                                ^~~~~~~~~
utils.c:1000:58: note: expected 'struct name_keysym *' but argument is of type 'const struct name_keysym *'
 1000 | kkc_key_event_utils_bsearch_keysyms (struct name_keysym* memory,
      |                                      ~~~~~~~~~~~~~~~~~~~~^~~~~~
utils.vala: In function 'kkc_key_event_utils_keyval_from_name':
utils.vala:182:48: warning: passing argument 1 of 'kkc_key_event_utils_bsearch_keysyms' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  182 |             var entry = bsearch_keysyms (name_to_keysym,
      |                                                ^~~~~~~~~
utils.c:1000:58: note: expected 'struct name_keysym *' but argument is of type 'const struct name_keysym *'
 1000 | kkc_key_event_utils_bsearch_keysyms (struct name_keysym* memory,
      |                                      ~~~~~~~~~~~~~~~~~~~~^~~~~~
utils.c: In function 'kkc_key_event_utils_get_type':
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Wdiscarded-qualifiers]
  131 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
      |     ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:272:7: note: in expansion of macro 'g_atomic_pointer_get'
  272 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
utils.c:1583:13: note: in expansion of macro 'g_once_init_enter'
 1583 |         if (g_once_init_enter (&kkc_key_event_utils_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
utils.c: In function 'kkc_index_file_get_type':
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Wdiscarded-qualifiers]
  131 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
      |     ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:272:7: note: in expansion of macro 'g_atomic_pointer_get'
  272 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
utils.c:1649:13: note: in expansion of macro 'g_once_init_enter'
 1649 |         if (g_once_init_enter (&kkc_index_file_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
utils.c: In function 'kkc_mapped_index_file_get_type':
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Wdiscarded-qualifiers]
  131 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
      |     ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:272:7: note: in expansion of macro 'g_atomic_pointer_get'
  272 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
utils.c:1816:13: note: in expansion of macro 'g_once_init_enter'
 1816 |         if (g_once_init_enter (&kkc_mapped_index_file_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
utils.vala: In function 'kkc_loaded_index_file_construct':
utils.vala:248:36: error: passing argument 3 of 'g_file_load_contents' from incompatible pointer type [-Wincompatible-pointer-types]
  248 |             file.load_contents (null, out contents, out etag);
      |                                    ^~~~~~~
      |                                    |
      |                                    guint8 ** {aka unsigned char **}
In file included from /usr/include/glib-2.0/gio/gio.h:81,
                 from /usr/include/gee-0.8/gee.h:8,
                 from utils.c:25:
/usr/include/glib-2.0/gio/gfile.h:1264:71: note: expected 'char **' but argument is of type 'guint8 **' {aka 'unsigned char **'}
 1264 |                                               char                  **contents,
      |                                               ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
utils.vala: In function 'kkc_loaded_index_file_real_get_contents':
utils.vala:252:9: warning: pointer targets in assignment from 'guint8 *' {aka 'unsigned char *'} to 'gchar *' {aka 'char *'} differ in signedness [-Wpointer-sign]
  252 |             return contents;
      |         ^
utils.c:1902:14: warning: variable '_tmp0__length1' set but not used [-Wunused-but-set-variable]
 1902 |         gint _tmp0__length1;
      |              ^~~~~~~~~~~~~~
utils.c: In function 'kkc_loaded_index_file_real_get_length':
utils.c:1921:17: warning: variable '_tmp0_' set but not used [-Wunused-but-set-variable]
 1921 |         guint8* _tmp0_;
      |                 ^~~~~~
utils.c: In function 'kkc_loaded_index_file_get_type':
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Wdiscarded-qualifiers]
  131 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
      |     ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:272:7: note: in expansion of macro 'g_atomic_pointer_get'
  272 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
utils.c:2001:13: note: in expansion of macro 'g_once_init_enter'
 2001 |         if (g_once_init_enter (&kkc_loaded_index_file_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
utils.c: At top level:
utils.c:1312:1: warning: 'block15_data_ref' defined but not used [-Wunused-function]
 1312 | block15_data_ref (Block15Data* _data15_)
      | ^~~~~~~~~~~~~~~~
utils.c:95:20: warning: 'kkc_loaded_index_file_properties' defined but not used [-Wunused-variable]
   95 | static GParamSpec* kkc_loaded_index_file_properties[KKC_LOADED_INDEX_FILE_NUM_PROPERTIES];
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
utils.c:78:20: warning: 'kkc_mapped_index_file_properties' defined but not used [-Wunused-variable]
   78 | static GParamSpec* kkc_mapped_index_file_properties[KKC_MAPPED_INDEX_FILE_NUM_PROPERTIES];
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
utils.c:53:20: warning: 'kkc_key_event_utils_properties' defined but not used [-Wunused-variable]
   53 | static GParamSpec* kkc_key_event_utils_properties[KKC_KEY_EVENT_UTILS_NUM_PROPERTIES];
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:1174: libkkc_la-utils.lo] Error 1
make[2]: Target 'all' not remade because of errors.
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/libkkc'
Making all in tools
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/tools'
make[2]: *** No rule to make target '../libkkc/libkkc.la', needed by 'kkc'.
make[2]: Target 'all' not remade because of errors.
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/tools'
Making all in data
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data'
Making all in dbus
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data/dbus'
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data/dbus'
Making all in rules
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data/rules'
Making all in default
make[4]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data/rules/default'
make[4]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data/rules/default'
Making all in act
make[4]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data/rules/act'
make[4]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data/rules/act'
Making all in atok
make[4]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data/rules/atok'
make[4]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data/rules/atok'
Making all in azik
make[4]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data/rules/azik'
make[4]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data/rules/azik'
Making all in azik-jp106
make[4]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data/rules/azik-jp106'
make[4]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data/rules/azik-jp106'
Making all in kzik
make[4]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data/rules/kzik'
make[4]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data/rules/kzik'
Making all in tutcode
make[4]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data/rules/tutcode'
make[4]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data/rules/tutcode'
Making all in tutcode-touch16x
make[4]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data/rules/tutcode-touch16x'
make[4]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data/rules/tutcode-touch16x'
Making all in nicola
make[4]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data/rules/nicola'
make[4]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data/rules/nicola'
Making all in tcode
make[4]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data/rules/tcode'
make[4]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data/rules/tcode'
Making all in trycode
make[4]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data/rules/trycode'
make[4]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data/rules/trycode'
Making all in kana
make[4]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data/rules/kana'
make[4]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data/rules/kana'
make[4]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data/rules'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data/rules'
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data/rules'
Making all in templates
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data/templates'
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data/templates'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data'
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/data'
Making all in tests
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/tests'
Making all in lib
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/libkkc-0.3.5/tests/lib'
  CC       libkkc_test_la-test-case.lo
test-case.vala: In function 'kkc_test_case_add_test':
test-case.vala:42:59: error: passing argument 4 of 'g_test_create_case' from incompatible pointer type [-Wincompatible-pointer-types]
   42 |       this._suite.add (new GLib.TestCase (
      |                                                           ^
      |                                                           |
      |                                                           void (*)(void *, void *)
In file included from /usr/include/glib-2.0/glib.h:89,
                 from /usr/include/glib-2.0/gobject/gbinding.h:30,
                 from /usr/include/glib-2.0/glib-object.h:24,
                 from libkkc-test.h:6,
                 from test-case.c:28:
/usr/include/glib-2.0/glib/gtestutils.h:557:60: note: expected 'GTestFixtureFunc' {aka 'void (*)(void *, const void *)'} but argument is of type 'void (*)(void *, void *)'
  557 |                                          GTestFixtureFunc  data_setup,
      |                                          ~~~~~~~~~~~~~~~~~~^~~~~~~~~~
test-case.vala:42:109: error: passing argument 5 of 'g_test_create_case' from incompatible pointer type [-Wincompatible-pointer-types]
   42 |       this._suite.add (new GLib.TestCase (
      |                                                                                                             ^
      |                                                                                                             |
      |                                                                                                             void (*)(void *, void *)
/usr/include/glib-2.0/glib/gtestutils.h:558:60: note: expected 'GTestFixtureFunc' {aka 'void (*)(void *, const void *)'} but argument is of type 'void (*)(void *, void *)'
  558 |                                          GTestFixtureFunc  data_test,
      |                                          ~~~~~~~~~~~~~~~~~~^~~~~~~~~
test-case.vala:42:156: error: passing argument 6 of 'g_test_create_case' from incompatible pointer type [-Wincompatible-pointer-types]
   42 |       this._suite.add (new GLib.TestCase (
      |                                                                                                                                                            ^                         
      |                                                                                                                                                            |
      |                                                                                                                                                            void (*)(void *, void *)
/usr/include/glib-2.0/glib/gtestutils.h:559:60: note: expected 'GTestFixtureFunc' {aka 'void (*)(void *, const void *)'} but argument is of type 'void (*)(void *, void *)'
  559 |                                          GTestFixtureFunc  data_teardown);
      |                                          ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/glib/gthread.h:34,
                 from /usr/include/glib-2.0/glib/gasyncqueue.h:34,
                 from /usr/include/glib-2.0/glib.h:34:
test-case.c: In function 'kkc_test_case_adaptor_get_type':
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Wdiscarded-qualifiers]
  131 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
      |     ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:272:7: note: in expansion of macro 'g_atomic_pointer_get'
  272 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
test-case.c:812:13: note: in expansion of macro 'g_once_init_enter'
  812 |         if (g_once_init_enter (&kkc_test_case_adaptor_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
test-case.c: In function 'kkc_test_case_get_type':
/usr/include/glib-2.0/glib/gatomic.h:131:5: warning: argument 2 of '__atomic_load' discards 'volatile' qualifier [-Wdiscarded-qualifiers]
  131 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
      |     ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:272:7: note: in expansion of macro 'g_atomic_pointer_get'
  272 |     (!g_atomic_pointer_get (location) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
test-case.c:909:13: note: in expansion of macro 'g_once_init_enter'
  909 |         if (g_once_init_enter (&kkc_test_case_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
test-case.c: At top level:
test-case.c:539:1: warning: 'kkc_test_case_adaptor_set_name' defined but not used [-Wunused-function]
  539 | kkc_test_case_adaptor_set_name (KkcTestCaseAdaptor* self,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
test-case.c:49:20: warning: 'kkc_test_case_properties' defined but not used [-Wunused-variable]
   49 | static GParamSpec* kkc_test_case_properties[KKC_TEST_CASE_NUM_PROPERTIES];
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:533: libkkc_test_la-test-case.lo] Error 1
``
</details>

kloczek avatar Jan 31 '24 00:01 kloczek