GNOME Bugzilla – Bug 686456
g_type_init is no longer required
Last modified: 2012-10-20 12:14:56 UTC
According with https://bugzilla.gnome.org/show_bug.cgi?id=686161, g_type_init is no longer required and its use causes:
gst.c:549:3: error: 'g_type_init' is deprecated (declared at /home/fidencio/dev/include/glib-2.0/gobject/gtype.h:669) [-Werror=deprecated-declarations]
We should instead #define GLIB_VERSION_MIN_REQUIRED and GLIB_VERSION_MAX_ALLOWED to 2.32.
Not sure we want to set GLIB_VERSION_MAX_ALLOWED - we may still want to use newer functions conditionally with #if GLIB_CHECK_VERSION...
Author: Tim-Philipp Müller <email@example.com>
Date: Sat Oct 20 12:54:06 2012 +0100
g_type_init() is no longer required and deprecated in glib >= 2.35.0
Dunno about the GLIB_VERSION_MIN_REQUIRED, I think it mostly makes sense for releases, but there it's not needed, since we don't use -Werror for releases, and any warnings don't hurt.
For git we still want warnings so we can fix stuff, I think, rather than suppress the warnings.