From 3b56efed0b2b815093f43ff5008e36c7c2e00615 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Tue, 13 Dec 2022 18:14:18 +0100 Subject: [PATCH] build: enable GLib deprecation warnings These were disabled to avoid a large spew of deprecation warnings post GLib 2.44. That might have been too big a hammer, because it made us miss us of API from newer GLib than we require. Let's re-enable the warnings and lower the bottom bound instead. That way we're get warned about use of API that's too new and also be warned about things that was deprecated long long ago. We may miss things that got deprecated in favor of better API after 2.44, but that's unlikely to be an issue and is definitely better than ignoring everything altogether. --- meson.build | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index e3550a4d..77824e15 100644 --- a/meson.build +++ b/meson.build @@ -147,9 +147,10 @@ deps = [ ] c_args = [ - '-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_' + glib_version.underscorify(), + # In 2.46, g_simple_async_* calls. Disable deprecations from then on + # until everything is ported to GTask. + '-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_44', '-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_' + glib_version.underscorify(), - '-DGLIB_DISABLE_DEPRECATION_WARNINGS', ] glib_deps = declare_dependency(