warning: 'g_memdup' is deprecated: Use 'g_memdup2' instead
Hello!
On latest git master:
jpeg-thumbnailer.c:684:49: warning: 'g_memdup' is deprecated: Use 'g_memdup2' instead [-Wdeprecated-declarations]
thumb = gdk_pixbuf_new_from_data (g_memdup (data + exif.thumb_tiff.offset, exif.thumb_tiff.length),
^
/usr/include/glib-2.0/glib/gstrfuncs.h:256:1: note: 'g_memdup' has been explicitly marked deprecated here
GLIB_DEPRECATED_IN_2_68_FOR (g_memdup2)
^
/usr/include/glib-2.0/glib/gversionmacros.h:1047:49: note: expanded from macro 'GLIB_DEPRECATED_IN_2_68_FOR'
# define GLIB_DEPRECATED_IN_2_68_FOR(f) GLIB_DEPRECATED_FOR(f)
^
/usr/include/glib-2.0/glib/gmacros.h:1072:32: note: expanded from macro 'GLIB_DEPRECATED_FOR'
#define GLIB_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f) _GLIB_EXTERN
^
/usr/include/glib-2.0/glib/gmacros.h:1040:44: note: expanded from macro 'G_DEPRECATED_FOR'
#define G_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "' instead")))
^
1 warning generated.
The fix requires bumping glib version required to 2.68.
Or we can call g_memdup2
if available. If not then g_memdup
?
Thanks!