mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 00:10:07 +01:00
build/autotools: avoid compiler warning generating "NM-1.0.gir"
We passed on the CFLAGS, but they also contain
"-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_40 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_40"
which causes compiler warnings:
GISCAN src/libnm-client-impl/NM-1.0.gir
/data/src/NetworkManager/tmp-introspect_17ddrdb/NM-1.0.c: In function ‘dump_object_type’:
/data/src/NetworkManager/tmp-introspect_17ddrdb/NM-1.0.c:251:13: warning: Not available before 2.70
251 | if (G_TYPE_IS_FINAL (type))
| ^~~~~~~~~~~~~~~~~
/data/src/NetworkManager/tmp-introspect_17ddrdb/NM-1.0.c: In function ‘dump_fundamental_type’:
/data/src/NetworkManager/tmp-introspect_17ddrdb/NM-1.0.c:369:13: warning: Not available before 2.70
369 | if (G_TYPE_IS_FINAL (type))
| ^~~~~~~~~~~~~~~~~
Filter them out.
See-also: https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/331
This commit is contained in:
parent
2dc7a3d9f9
commit
1234e5583a
1 changed files with 1 additions and 1 deletions
|
|
@ -1898,7 +1898,7 @@ src_libnm_client_impl_NM_1_0_gir_INCLUDES = Gio-2.0
|
|||
src_libnm_client_impl_NM_1_0_gir_PACKAGES = gio-2.0
|
||||
src_libnm_client_impl_NM_1_0_gir_EXPORT_PACKAGES = libnm
|
||||
src_libnm_client_impl_NM_1_0_gir_CFLAGS = \
|
||||
$(src_libnm_client_impl_libnm_la_CPPFLAGS) \
|
||||
$(filter-out -DGLIB_VERSION_%, $(src_libnm_client_impl_libnm_la_CPPFLAGS)) \
|
||||
-DNETWORKMANAGER_COMPILATION \
|
||||
$(NULL)
|
||||
src_libnm_client_impl_NM_1_0_gir_LIBS = src/libnm-client-impl/libnm.la
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue