File: fix-build-fix-with-Werror-incompatible-pointer-types.patch

package info (click to toggle)
telepathy-glib 0.24.2-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 31,756 kB
  • sloc: ansic: 124,638; xml: 34,410; sh: 4,531; python: 3,528; makefile: 1,722; javascript: 211; cpp: 16
file content (27 lines) | stat: -rw-r--r-- 1,040 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From: Mamoru TASAKA <mtasaka@fedoraproject.org>
Date: Fri, 2 Feb 2024 12:17:44 +0900
Subject: fix: build fix with -Werror=incompatible-pointer-types

gcc14 defaults to -Werror=incompatible-pointer-types .
Fix build error with this option.

Origin: upstream, commit:https://gitlab.freedesktop.org/telepathy/telepathy-glib/-/commit/72412c944b771f3214ddc40fa9dea82cea3a5651
Bug: https://gitlab.freedesktop.org/telepathy/telepathy-glib/-/issues/146
Bug-Debian: https://bugs.debian.org/1075558
---
 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 88fdff3..25b3662 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++)
     {