Skip to content

/usr/include/glib-2.0/glib/gmem.h:134:18: warning: passing argument 1 of ‘_ag_account_changes_free’ from incompatible pointer type [-Wincompatible-pointer-types]

There are more compile time warnings but this one is marked as a severe one by Portage:

QA Notice: Package triggers severe warnings which indicate that it may exhibit random runtime failures

In file included from /usr/include/glib-2.0/glib/glist.h:32,
                 from /usr/include/glib-2.0/glib/ghash.h:33,
                 from /usr/include/glib-2.0/glib.h:50,
                 from /usr/include/glib-2.0/gobject/gbinding.h:28,
                 from /usr/include/glib-2.0/glib-object.h:22,
                 from ../libaccounts-glib-VERSION_1.26/libaccounts-glib/ag-manager.h:35,
                 from ../libaccounts-glib-VERSION_1.26/libaccounts-glib/ag-account.c:102:
../libaccounts-glib-VERSION_1.26/libaccounts-glib/ag-account.c: In function ‘ag_account_finalize’:
/usr/include/glib-2.0/glib/gmem.h:134:18: warning: passing argument 1 of ‘_ag_account_changes_free’ from incompatible pointer type [-Wincompatible-pointer-types]
  134 |       (destroy) (_ptr);                                  \
      |                  ^~~~
      |                  |
      |                  GHashTable * {aka struct _GHashTable *}
../libaccounts-glib-VERSION_1.26/libaccounts-glib/ag-account.c:997:9: note: in expansion of macro ‘g_clear_pointer’
  997 |         g_clear_pointer (&priv->services, _ag_account_changes_free);
      |         ^~~~~~~~~~~~~~~
../libaccounts-glib-VERSION_1.26/libaccounts-glib/ag-account.c:540:45: note: expected ‘AgAccountChanges *’ {aka ‘struct _AgAccountChanges *’} but argument is of type ‘GHashTable *’ {aka ‘struct _GHashTable *’}
  540 | _ag_account_changes_free (AgAccountChanges *changes)
      |                           ~~~~~~~~~~~~~~~~~~^~~~~~~
../libaccounts-glib-VERSION_1.26/libaccounts-glib/ag-account.c: In function ‘ag_account_class_init’:
../libaccounts-glib-VERSION_1.26/libaccounts-glib/ag-account.c:1008:5: warning: ‘g_type_class_add_private’ is deprecated [-Wdeprecated-declarations]
 1008 |     g_type_class_add_private (object_class, sizeof (AgAccountPrivate));
      |     ^~~~~~~~~~~~~~~~~~~~~~~~