mate-desktop / mate-system-monitor

Process viewer and system resource monitor for MATE
https://mate-desktop.org
GNU General Public License v2.0
45 stars 27 forks source link

openfiles: g_memdup is dreprecated from glib 2.68 #215

Closed rbuj closed 3 years ago

rbuj commented 3 years ago
openfiles.cpp:122:84: warning: ‘void* g_memdup(gconstpointer, guint)’ is deprecated: Use 'g_memdup2' instead [-Wdeprecated-declarations]
  122 |                         COL_OPENFILE_STRUCT, g_memdup(openfiles, sizeof(*openfiles)),
      |                                                                                    ^
In file included from /usr/include/glib-2.0/glib.h:82,
                 from /usr/include/glib-2.0/glib/gi18n.h:21,
                 from openfiles.cpp:3:
/usr/include/glib-2.0/glib/gstrfuncs.h:257:23: note: declared here
  257 | gpointer              g_memdup         (gconstpointer mem,
      |                       ^~~~~~~~
memmaps.cpp: In member function ‘std::string {anonymous}::InodeDevices::get(guint64)’: