aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2022-12-13 18:14:18 +0100
committerAleksander Morgado <aleksander@aleksander.es>2023-01-18 10:51:40 +0000
commit3b56efed0b2b815093f43ff5008e36c7c2e00615 (patch)
tree0da635caf7a317dddb9e57244d2c40f3772da19e
parent1af34e1746e9736ea725502562ca21f7e12f3b34 (diff)
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.
-rw-r--r--meson.build5
1 files 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(