commit 12abd7e179adb9e31d999824048a5f40f90218fd
Author: Mamoru TASAKA <mtasaka@fedoraproject.org>
Date:   Fri Jul 26 12:13:32 2024 +0900

    Fix build with gcc14 -Werror=incompatible-pointer-types
    
    gcc14 now defaults to -Werror=incompatible-pointer-types.
    
    Add required casts to the returned pointers.

diff --git a/src/desktop.c b/src/desktop.c
index 0686a59..b358f50 100644
--- a/src/desktop.c
+++ b/src/desktop.c
@@ -1267,7 +1267,7 @@ static AtkObject *fm_desktop_accessible_ref_selection(AtkSelection *selection,
         item = items->data;
         if (item->item->is_selected)
             if (i-- == 0)
-                return g_object_ref(item);
+                return (AtkObject *)g_object_ref(item);
     }
     return NULL;
 }
@@ -1454,7 +1454,7 @@ static AtkObject *fm_desktop_accessible_ref_child(AtkObject *accessible,
     item = g_list_nth_data(priv->items, index);
     if (!item)
         return NULL;
-    return g_object_ref(item);
+    return (AtkObject *)g_object_ref(item);
 }
 
 static void fm_desktop_accessible_initialize(AtkObject *accessible, gpointer data)
