build: align GLIB_VERSION_MIN_REQUIRED with glib version we actually require

Now that we've dealt with everything that has been deprecated since
glib-2.44 until glib-2.56 (which we check), we can enable warnings that
guard against using the deprecated constructs.
This commit is contained in:
Lubomir Rintel
2023-01-20 14:56:43 +01:00
committed by Aleksander Morgado
parent 0c1ad4eb77
commit 42048cb2fc

View File

@@ -147,9 +147,7 @@ deps = [
]
c_args = [
# 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_MIN_REQUIRED=GLIB_VERSION_' + glib_version.underscorify(),
'-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_' + glib_version.underscorify(),
]