Opened 14 months ago

#71965 new defect

evince fails to build with gcc14: error: passing argument 1 of 'gtk_menu_attach_to_widget' from incompatible pointer type

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.10.5
Keywords: Cc: dbevans (David B. Evans)
Port: evince

Description

ev-sidebar-links.c: In function 'build_popup_menu':
ev-sidebar-links.c:345:36: error: passing argument 1 of 'gtk_menu_attach_to_widget' from incompatible pointer type [-Wincompatible-pointer-types]
  345 |         gtk_menu_attach_to_widget (menu, sidebar->priv->tree_view, NULL);
      |                                    ^~~~
      |                                    |
      |                                    GtkWidget * {aka struct _GtkWidget *}
In file included from /opt/local/include/gtk-3.0/gtk/gtklabel.h:34,
                 from /opt/local/include/gtk-3.0/gtk/gtkaccellabel.h:35,
                 from /opt/local/include/gtk-3.0/gtk/gtk.h:33,
                 from ev-sidebar-links.c:30:
/opt/local/include/gtk-3.0/gtk/gtkmenu.h:209:65: note: expected 'GtkMenu *' {aka 'struct _GtkMenu *'} but argument is of type 'GtkWidget *' {aka 'struct _GtkWidget *'}
  209 | void       gtk_menu_attach_to_widget      (GtkMenu             *menu,
      |                                            ~~~~~~~~~~~~~~~~~~~~~^~~~
make[3]: *** [evince-ev-sidebar-links.o] Error 1
make[3]: *** Waiting for unfinished jobs....

Change History (0)

Note: See TracTickets for help on using tickets.