Description: Satisfy GCC-14
 Make explicit pointer cast where needed.
Author: Thibaut Paumard <thibaut@debian.org>
Origin: vendor
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1075702
Last-Update: 2024-07-29
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/gy_object.c
+++ b/gy_object.c
@@ -156,7 +156,7 @@
 	}
 
 	if (action == GYLIST_ACTION_SIZE) {
-	  GList* lst = o->object;
+	  GList* lst = (GList*) o->object;
 	  if (!lst) {
 	    ypush_long(0);
 	    return;
@@ -189,9 +189,9 @@
 	} else {
 	  out -> info = o -> info;
 	  if (action==GYLIST_ACTION_NEXT)
-	    out -> object = ((GList*) o->object) -> next;
+	    out -> object = (GObject*) ((GList*) o->object) -> next;
 	  else if (action==GYLIST_ACTION_PREV)
-	    out -> object = ((GList*) o->object) -> prev;
+	    out -> object = (GObject*) ((GList*) o->object) -> prev;
 	}
 	g_base_info_ref(out -> info);
 	return;
@@ -392,7 +392,7 @@
     if (type !=GI_TYPE_TAG_GLIST && type !=GI_TYPE_TAG_GSLIST)
       y_error("Unimplemented");
     if (!o->object) y_error("G(S)List is nil");
-    GList* lst = o->object;
+    GList* lst = (GList*) o->object;
     long idx = ygets_l(argc-1)-1;
     gy_Object * out = ypush_gy_Object();
     if (type !=GI_TYPE_TAG_GLIST)
--- a/gy_repository.c
+++ b/gy_repository.c
@@ -176,7 +176,7 @@
     if (yarg_string(argc-1)) namespace = ygets_q(argc-1);
     else namespace = yget_gy_Typelib(argc-1)->namespace;
 
-    GSList * lst = g_irepository_enumerate_versions(r->repo, namespace);
+    GSList * lst = (GSList*) g_irepository_enumerate_versions(r->repo, namespace);
     GSList * cur = 0;
     long count =0;
     
