Skip to content

g_memdup() has been deprecated

It needs to be replaced with g_memdup2
https://gitlab.xfce.org/xfce/xfce4-panel/-/blob/master/plugins/systray/sn-item.c#L657 (link to master, sorry I didn't find how to get a permanent link in GitLab)

sn-item.c: У функції ‘sn_item_extract_pixbuf’:
sn-item.c:657:19: попередження: ‘g_memdup’ вважається застарілим: Use 'g_memdup2' instead [-Wdeprecated-declarations]
  657 |                   array = g_memdup (data, size);
      |                   ^~~~~
У файлі, який включено у /usr/include/glib-2.0/glib.h:82,
                 з /usr/include/glib-2.0/gobject/gbinding.h:28,
                 з /usr/include/glib-2.0/glib-object.h:22,
                 з /usr/include/glib-2.0/gio/gioenums.h:28,
                 з /usr/include/glib-2.0/gio/giotypes.h:28,
                 з /usr/include/glib-2.0/gio/gio.h:26,
                 з sn-item.c:28:
/usr/include/glib-2.0/glib/gstrfuncs.h:257:23: зауваження: оголошено тут
  257 | gpointer              g_memdup         (gconstpointer mem,
      |                       ^~~~~~~~