ibus-kkc icon indicating copy to clipboard operation
ibus-kkc copied to clipboard

1.5.22: is not gcc 14.x ready

Open kloczek opened this issue 1 year ago • 4 comments

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

Build fails with
[tkloczko@pers-jacek ibus-kkc-1.5.22]$ make -k
make  all-recursive
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ibus-kkc-1.5.22'
Making all in src
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ibus-kkc-1.5.22/src'
Makefile:830: warning: overriding recipe for target 'ibus-kkc.vapi'
Makefile:825: warning: ignoring old recipe for target 'ibus-kkc.vapi'
make  all-am
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ibus-kkc-1.5.22/src'
Makefile:830: warning: overriding recipe for target 'ibus-kkc.vapi'
Makefile:825: warning: ignoring old recipe for target 'ibus-kkc.vapi'
/bin/sh ../libtool  --tag=CC   --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -include ../config.h  -I/usr/include/ibus-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/kkc-1.0 -I/usr/include/json-glib-1.0 -I/usr/include/gee-0.8 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DPACKAGE_DATADIR=\"/usr/share/ibus-kkc\" -DLOCALEDIR=\"/usr/share/locale\" -DSETUPDIR=\"\" -DLIBEXECDIR=\"/usr/libexec\" -DDATADIR=\"/usr/share\" -DSKKDICDIR=\"/usr/share/skk\" -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Os -c -o libutil_la-preferences.lo `test -f 'preferences.c' || echo './'`preferences.c
libtool: compile:  /usr/bin/gcc -DHAVE_CONFIG_H -I. -I.. -include ../config.h -I/usr/include/ibus-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/kkc-1.0 -I/usr/include/json-glib-1.0 -I/usr/include/gee-0.8 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DPACKAGE_DATADIR=\"/usr/share/ibus-kkc\" -DLOCALEDIR=\"/usr/share/locale\" -DSETUPDIR=\"\" -DLIBEXECDIR=\"/usr/libexec\" -DDATADIR=\"/usr/share\" -DSKKDICDIR=\"/usr/share/skk\" -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Os -c preferences.c  -fPIC -DPIC -o .libs/libutil_la-preferences.o
preferences.c: In function 'preferences_construct':
preferences.c:514:22: warning: unused variable '_metadata_collection_size_' [-Wunused-variable]
  514 |                 gint _metadata_collection_size_ = 0;
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
preferences.vala:90:10: error: assignment to 'gchar **' {aka 'char **'} from incompatible pointer type 'void **' [-Wincompatible-pointer-types]
   90 |         _default.set ("system_dictionaries",
      |          ^
preferences.vala:90:32: error: passing argument 1 of 'g_variant_new_strv' from incompatible pointer type [-Wincompatible-pointer-types]
   90 |         _default.set ("system_dictionaries",
      |                                ^~~~~~~
      |                                |
      |                                gchar ** {aka char **}
In file included from /usr/include/glib-2.0/glib/gmessages.h:38,
                 from /usr/include/glib-2.0/glib.h:64,
                 from /usr/include/glib-2.0/gobject/gbinding.h:30,
                 from /usr/include/glib-2.0/glib-object.h:24,
                 from libutil.h:6,
                 from preferences.c:24:
/usr/include/glib-2.0/glib/gvariant.h:120:96: note: expected 'const gchar * const*' {aka 'const char * const*'} but argument is of type 'gchar **' {aka 'char **'}
  120 | GVariant *                      g_variant_new_strv                      (const gchar * const  *strv,
      |                                                                          ~~~~~~~~~~~~~~~~~~~~~~^~~~
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:
preferences.c: In function 'preferences_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) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
preferences.c:914:13: note: in expansion of macro 'g_once_init_enter'
  914 |         if (g_once_init_enter (&preferences_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
preferences.c: At top level:
preferences.c:38:20: warning: 'preferences_properties' defined but not used [-Wunused-variable]
   38 | static GParamSpec* preferences_properties[PREFERENCES_NUM_PROPERTIES];
      |                    ^~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:719: libutil_la-preferences.lo] Error 1
/bin/sh ../libtool  --tag=CC   --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -include ../config.h  -I/usr/include/ibus-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/kkc-1.0 -I/usr/include/json-glib-1.0 -I/usr/include/gee-0.8 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DPACKAGE_DATADIR=\"/usr/share/ibus-kkc\" -DLOCALEDIR=\"/usr/share/locale\" -DSETUPDIR=\"\" -DLIBEXECDIR=\"/usr/libexec\" -DDATADIR=\"/usr/share\" -DSKKDICDIR=\"/usr/share/skk\" -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Os -c -o libutil_la-dictionary.lo `test -f 'dictionary.c' || echo './'`dictionary.c
libtool: compile:  /usr/bin/gcc -DHAVE_CONFIG_H -I. -I.. -include ../config.h -I/usr/include/ibus-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/kkc-1.0 -I/usr/include/json-glib-1.0 -I/usr/include/gee-0.8 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DPACKAGE_DATADIR=\"/usr/share/ibus-kkc\" -DLOCALEDIR=\"/usr/share/locale\" -DSETUPDIR=\"\" -DLIBEXECDIR=\"/usr/libexec\" -DDATADIR=\"/usr/share\" -DSKKDICDIR=\"/usr/share/skk\" -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Os -c dictionary.c  -fPIC -DPIC -o .libs/libutil_la-dictionary.o
dictionary.vala: In function 'dictionary_metadata_set_id':
dictionary.vala:23:12: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   23 |     public string id { get; construct set; }
      |            ^
dictionary.vala: In function 'dictionary_metadata_set_filename':
dictionary.vala:24:12: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   24 |     public string filename { get; construct set; }
      |            ^
dictionary.vala: In function 'dictionary_metadata_set_name':
dictionary.vala:25:12: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   25 |     public string name { get; construct set; }
      |            ^
dictionary.vala: In function 'dictionary_metadata_set_description':
dictionary.vala:26:12: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   26 |     public string description { get; construct set; }
      |            ^
dictionary.vala: In function 'dictionary_metadata_set_encoding':
dictionary.vala:28:12: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   28 |     public string encoding { get; construct set; default = "EUC-JP"; }
      |            ^
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 libutil.h:6,
                 from dictionary.c:24:
dictionary.c: In function 'dictionary_metadata_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:557:13: note: in expansion of macro 'g_once_init_enter'
  557 |         if (g_once_init_enter (&dictionary_metadata_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
dictionary.vala: In function 'dictionary_registry_list_available':
dictionary.vala:98:10: error: assignment to 'DictionaryMetadata **' {aka 'struct _DictionaryMetadata **'} from incompatible pointer type 'void **' [-Wincompatible-pointer-types]
   98 |         return result.to_array ();
      |          ^
dictionary.c: In function 'dictionary_registry_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:1319:6: note: in expansion of macro 'g_once_init_enter'
 1319 | {
      |      ^
dictionary.c: At top level:
dictionary.c:51:20: warning: 'dictionary_registry_properties' defined but not used [-Wunused-variable]
   51 | static GParamSpec* dictionary_registry_properties[DICTIONARY_REGISTRY_NUM_PROPERTIES];
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:726: libutil_la-dictionary.lo] Error 1
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I..  -include ../config.h  -I/usr/include/ibus-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/kkc-1.0 -I/usr/include/json-glib-1.0 -I/usr/include/gee-0.8 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DPACKAGE_DATADIR=\"/usr/share/ibus-kkc\" -DLOCALEDIR=\"/usr/share/locale\" -DSETUPDIR=\"\" -DLIBEXECDIR=\"/usr/libexec\" -DDATADIR=\"/usr/share\" -DSKKDICDIR=\"/usr/share/skk\" -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Os -c -o ibus_setup_kkc-setup.o `test -f 'setup.c' || echo './'`setup.c
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/gtk-3.0/gdk/gdkconfig.h:8,
                 from /usr/include/gtk-3.0/gdk/gdk.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from setup.c:24:
setup.c: In function ‘dictionary_cell_renderer_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) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
setup.c:604:13: note: in expansion of macro ‘g_once_init_enter’
  604 |         if (g_once_init_enter (&dictionary_cell_renderer_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
setup.c: In function ‘dictionary_dialog_populate_available_dictionaries_treeview’:
setup.c:809:22: warning: unused variable ‘_str_collection_size_’ [-Wunused-variable]
  809 |                 gint _str_collection_size_ = 0;
      |                      ^~~~~~~~~~~~~~~~~~~~~
setup.c:870:22: warning: unused variable ‘_metadata_collection_size_’ [-Wunused-variable]
  870 |                 gint _metadata_collection_size_ = 0;
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
setup.c:772:14: warning: variable ‘_available_dictionaries_size_’ set but not used [-Wunused-but-set-variable]
  772 |         gint _available_dictionaries_size_;
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
setup.c:757:14: warning: variable ‘_strv_size_’ set but not used [-Wunused-but-set-variable]
  757 |         gint _strv_size_;
      |              ^~~~~~~~~~~
setup.c: In function ‘dictionary_dialog_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) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
setup.c:1210:13: note: in expansion of macro ‘g_once_init_enter’
 1210 |         if (g_once_init_enter (&dictionary_dialog_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
setup.c: In function ‘shortcut_dialog_construct’:
setup.c:1279:22: warning: unused variable ‘_command_collection_size_’ [-Wunused-variable]
 1279 |                 gint _command_collection_size_ = 0;
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~
setup.c:1238:14: warning: variable ‘_commands_size_’ set but not used [-Wunused-but-set-variable]
 1238 |         gint _commands_size_;
      |              ^~~~~~~~~~~~~~~
setup.c: In function ‘shortcut_dialog_finalize’:
setup.c:1477:26: warning: variable ‘self’ set but not used [-Wunused-but-set-variable]
 1477 |         ShortcutDialog * self;
      |                          ^~~~
setup.c: In function ‘shortcut_dialog_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) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
setup.c:1499:13: note: in expansion of macro ‘g_once_init_enter’
 1499 |         if (g_once_init_enter (&shortcut_dialog_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
setup.c: In function ‘setup_dialog_construct’:
setup.c:2240:22: warning: unused variable ‘_rule_collection_size_’ [-Wunused-variable]
 2240 |                 gint _rule_collection_size_ = 0;
      |                      ^~~~~~~~~~~~~~~~~~~~~~
setup.c:1935:14: warning: variable ‘_rules_size_’ set but not used [-Wunused-but-set-variable]
 1935 |         gint _rules_size_;
      |              ^~~~~~~~~~~~
setup.vala: In function ‘setup_dialog_remove_shortcut’:
setup.vala:442:45: warning: passing argument 1 of ‘_vala_uint_array_contains’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  442 |                         old_event->keyval in IGNORED_KEYVALS)
      |                                             ^~~~~~~~~~~~~~~~~
setup.c:2904:36: note: expected ‘guint *’ {aka ‘unsigned int *’} but argument is of type ‘const guint *’ {aka ‘const unsigned int *’}
 2904 | _vala_uint_array_contains (guint * stack,
      |                            ~~~~~~~~^~~~~
setup.c: In function ‘setup_dialog_populate_dictionaries_treeview’:
setup.c:3202:22: warning: unused variable ‘_id_collection_size_’ [-Wunused-variable]
 3202 |                 gint _id_collection_size_ = 0;
      |                      ^~~~~~~~~~~~~~~~~~~~
setup.c:3157:14: warning: variable ‘_strv_size_’ set but not used [-Wunused-but-set-variable]
 3157 |         gint _strv_size_;
      |              ^~~~~~~~~~~
setup.c: In function ‘setup_dialog_populate_shortcut_treeview’:
setup.c:3464:22: warning: unused variable ‘_entry_collection_size_’ [-Wunused-variable]
 3464 |                 gint _entry_collection_size_ = 0;
      |                      ^~~~~~~~~~~~~~~~~~~~~~~
setup.c:3332:14: warning: variable ‘_entries_size_’ set but not used [-Wunused-but-set-variable]
 3332 |         gint _entries_size_;
      |              ^~~~~~~~~~~~~~
setup.c: In function ‘setup_dialog_add_dict’:
setup.c:3633:30: warning: unused variable ‘_dictionary_collection_size_’ [-Wunused-variable]
 3633 |                         gint _dictionary_collection_size_ = 0;
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
setup.c:3600:22: warning: variable ‘_dictionaries_size_’ set but not used [-Wunused-but-set-variable]
 3600 |                 gint _dictionaries_size_;
      |                      ^~~~~~~~~~~~~~~~~~~
setup.vala: In function ‘setup_dialog_save_dictionaries’:
setup.vala:683:11: error: assignment to ‘gchar **’ {aka ‘char **’} from incompatible pointer type ‘void **’ [-Wincompatible-pointer-types]
  683 |             preferences.set (name, dictionaries.to_array ());
      |           ^
setup.vala: In function ‘setup_dialog_key_event_cell_renderer_set_event’:
setup.vala:736:40: warning: passing argument 1 of ‘_vala_uint_array_contains’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  736 |                 if (accel_mods == 0 && accel_key in IGNORED_KEYVALS)
      |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
setup.c:2904:36: note: expected ‘guint *’ {aka ‘unsigned int *’} but argument is of type ‘const guint *’ {aka ‘const unsigned int *’}
 2904 | _vala_uint_array_contains (guint * stack,
      |                            ~~~~~~~~^~~~~
setup.c: In function ‘setup_dialog_key_event_cell_renderer_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) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
setup.c:5401:13: note: in expansion of macro ‘g_once_init_enter’
 5401 |         if (g_once_init_enter (&setup_dialog_key_event_cell_renderer_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
setup.c: In function ‘setup_dialog_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) &&                             \
      |       ^~~~~~~~~~~~~~~~~~~~
setup.c:5554:13: note: in expansion of macro ‘g_once_init_enter’
 5554 |         if (g_once_init_enter (&setup_dialog_type_id__once)) {
      |             ^~~~~~~~~~~~~~~~~
setup.c: At top level:
setup.c:117:20: warning: ‘setup_dialog_properties’ defined but not used [-Wunused-variable]
  117 | static GParamSpec* setup_dialog_properties[SETUP_DIALOG_NUM_PROPERTIES];
      |                    ^~~~~~~~~~~~~~~~~~~~~~~
setup.c:101:20: warning: ‘shortcut_dialog_properties’ defined but not used [-Wunused-variable]
  101 | static GParamSpec* shortcut_dialog_properties[SHORTCUT_DIALOG_NUM_PROPERTIES];
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
setup.c:82:20: warning: ‘dictionary_dialog_properties’ defined but not used [-Wunused-variable]
   82 | static GParamSpec* dictionary_dialog_properties[DICTIONARY_DIALOG_NUM_PROPERTIES];
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:761: ibus_setup_kkc-setup.o] Error 1
make[3]: Target 'all-am' not remade because of errors.

kloczek avatar Jan 31 '24 00:01 kloczek

Would it be reproducible even after regenerating .c files with the latest Vala compiler (i.e., after removing *stamp files)?

ueno avatar Jan 31 '24 01:01 ueno

I'm using as input source tar ball autogenerated from git tag tar ball + patches generated from commits so I'm not sure about what kind of stamp files you are talking about. Exactly the same source tar ball and set of patches have been working with gcc 13.x. In this case gcc turns -Wincompatible-pointer-types warnings compile time into errors.

kloczek avatar Jan 31 '24 01:01 kloczek

In tarball, you can find ibus_engine_kkc_vala.stamp and ibus_setup_kkc_vala.stamp under src, which are the timestamp files when *.c files are generated from *.vala. If you remove them, the Vala autotools integration should re-generate *.c files.

ueno avatar Jan 31 '24 05:01 ueno

Hmm .. .c files generated by valac should not be part of the VCS resources.

kloczek avatar Jan 31 '24 09:01 kloczek