Debian Codegraph @

debian/patches/incompatible-pointer-type

raw
1 Description: Fix FTBFS with GCC-14 (incompatible pointer types)
2 GCC-14 no longer allows implicitly casting all pointer types to all other
3 pointer types. This now causes an error when compiling src/status.c
4 .
5 Therefore, explicitly cast the first argument in gtk_widget_set_sensitive()
6 call to GTK_WIDGET, which is what it expects.
7 .
8 Upstream project is archived, so we do not upstream the patch.
9 Author: Nick Morrott <[email protected]>
10 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1074889
11 Forwarded: not-needed
12 Last-Update: 2024-08-23
13 ---
14 --- a/src/status.c
15 +++ b/src/status.c
16 @@ -120,7 +120,7 @@
17
18 gtk_menu_item_set_submenu(item, GTK_WIDGET(submenu));
19 gtk_container_add(GTK_CONTAINER(menu), GTK_WIDGET(item));
20 - gtk_widget_set_sensitive(item, has_items);
21 + gtk_widget_set_sensitive(GTK_WIDGET(item), has_items);
22
23 }
24