[MacPorts] #71965: evince fails to build with gcc14: error: passing argument 1 of 'gtk_menu_attach_to_widget' from incompatible pointer type

MacPorts noreply at macports.org
Tue Jan 28 16:51:13 UTC 2025


#71965: evince fails to build with gcc14: error: passing argument 1 of
'gtk_menu_attach_to_widget' from incompatible pointer type
--------------------------+--------------------
 Reporter:  barracuda156  |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.10.5
 Keywords:                |       Port:  evince
--------------------------+--------------------
 {{{
 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....
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/71965>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list