summaryrefslogtreecommitdiff
path: root/x11-misc/pcmanfm/files/pcmanfm-1.3.2-c99.patch
blob: 52337891d5d6f2a83c73b1c63bfefa966bf6c92e (plain)
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
28
29
30
31
https://bugs.gentoo.org/919077
https://github.com/lxde/pcmanfm/pull/17

From 9bf5145eba45cd5e3b87d4f040618fe0ea69a81d Mon Sep 17 00:00:00 2001
From: Mamoru TASAKA <mtasaka@fedoraproject.org>
Date: Fri, 26 Jul 2024 12:13:32 +0900
Subject: [PATCH] Fix build with gcc14 -Werror=incompatible-pointer-types

gcc14 now defaults to gcc -Werror=incompatible-pointer-types .
This commit adds required casts to different pointer types.
--- 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)