From b0fbd247fcaf1ef5b5e938e721e3c20944c54268 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Wed, 5 Jan 2022 11:13:14 +0100 Subject: [PATCH] GTK2: Inhibit warnings from glib 2.36 and later. glib 2.36 deprecated some stuff that the gtk-2 headerfiles use. So set GLIB_VERSION_MIN_REQUIRED to a version prior to GLIB_VERSION_2_36 to inhibit the deprecation warnings. --- src/post_modules/GTK2/configure.in | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/post_modules/GTK2/configure.in b/src/post_modules/GTK2/configure.in index a16a3f1844..b40b0184b8 100644 --- a/src/post_modules/GTK2/configure.in +++ b/src/post_modules/GTK2/configure.in @@ -18,6 +18,14 @@ dnl AC_DEFINE(HAVE_GNOME) dnl AC_DEFINE(HAVE_DPMS) dnl AC_DEFINE(PGTK_AUTO_UTF8) +# Inhibit deprecation warnings about GTK2 using deprecated APIs in glib-2.0. +# +# NB: Any glib version prior to 2.36 should do, but we do not +# want to cause issues if the version of glib actually is +# older than 2.36, so select the oldest still supported. +AC_DEFINE(GLIB_VERSION_MIN_REQUIRED, GLIB_VERSION_2_26, + [Define to something prior to 2.36 to inhibit deprecation warnings from glib.]) + AC_DEFINE(FUNCPROTO) AC_HEADER_STDC -- GitLab