From 1234e5583a09a618b930241a12b8a1d580493568 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 7 Apr 2022 10:53:06 +0200 Subject: [PATCH] build/autotools: avoid compiler warning generating "NM-1.0.gir" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 2cf4fcd286..60a171f528 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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