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.
This commit is contained in:

committed by
Aleksander Morgado

parent
1af34e1746
commit
3b56efed0b
@@ -147,9 +147,10 @@ deps = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
c_args = [
|
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_VERSION_MAX_ALLOWED=GLIB_VERSION_' + glib_version.underscorify(),
|
||||||
'-DGLIB_DISABLE_DEPRECATION_WARNINGS',
|
|
||||||
]
|
]
|
||||||
|
|
||||||
glib_deps = declare_dependency(
|
glib_deps = declare_dependency(
|
||||||
|
Reference in New Issue
Block a user