telepathy-glib: fix: build fix with -Werror=incompatible-pointer-types

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Aug 2 15:40:54 UTC 2024


Module: telepathy-glib
Branch: master
Commit: 72412c944b771f3214ddc40fa9dea82cea3a5651
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=72412c944b771f3214ddc40fa9dea82cea3a5651

Author: Mamoru TASAKA <mtasaka at fedoraproject.org>
Date:   Fri Feb  2 12:17:44 2024 +0900

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++)
     {



More information about the telepathy-commits mailing list