diff --git a/telepathy-glib-function-type-cast.patch b/telepathy-glib-function-type-cast.patch new file mode 100644 index 0000000..0e4f6f6 --- /dev/null +++ b/telepathy-glib-function-type-cast.patch @@ -0,0 +1,27 @@ +From 72412c944b771f3214ddc40fa9dea82cea3a5651 Mon Sep 17 00:00:00 2001 +From: Mamoru TASAKA +Date: Fri, 2 Feb 2024 12:17:44 +0900 +Subject: [PATCH] fix: build fix with -Werror=incompatible-pointer-types + +gcc14 defaults to -Werror=incompatible-pointer-types . +Fix build error with this option. +--- + telepathy-glib/protocol.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/telepathy-glib/protocol.c b/telepathy-glib/protocol.c +index 88fdff382..25b36620b 100644 +--- a/telepathy-glib/protocol.c ++++ b/telepathy-glib/protocol.c +@@ -1791,7 +1791,7 @@ _tp_protocol_parse_manager_file (GKeyFile *file, + i++; + } + +- param_specs = g_ptr_array_new_full (i, tp_value_array_free); ++ param_specs = g_ptr_array_new_full (i, (GDestroyNotify) tp_value_array_free); + + for (key = keys; key != NULL && *key != NULL; key++) + { +-- +GitLab + diff --git a/telepathy-glib.changes b/telepathy-glib.changes index 5b48711..d3cc8e4 100644 --- a/telepathy-glib.changes +++ b/telepathy-glib.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 4 21:43:45 UTC 2024 - Michael Gorse + +- Add telepathy-glib-function-type-cast.patch: fix an invalid cast + (glfdo#telepathy/telepathy-glib!4). + ------------------------------------------------------------------- Tue Mar 5 14:05:37 UTC 2024 - Dominique Leuenberger diff --git a/telepathy-glib.spec b/telepathy-glib.spec index cab335e..3f43076 100644 --- a/telepathy-glib.spec +++ b/telepathy-glib.spec @@ -24,6 +24,8 @@ License: LGPL-2.1-or-later Group: Development/Languages/C and C++ URL: http://telepathy.freedesktop.org/ Source: http://telepathy.freedesktop.org/releases/telepathy-glib/%{name}-%{version}.tar.gz +# PATCH-FIX-UPSTREAM telepathy-glib-function-type-cast.patch boo#1221707 mgorse@suse.com -- fix an invalid cast. +Patch0: telepathy-glib-function-type-cast.patch BuildRequires: gtk-doc >= 1.17 BuildRequires: libxslt-devel