With GCC 14, there are a number of errors regarding incompatible pointer types in lxpolkit/lxpolkit-listener.c in lxsession.
Here is a snippet:
lxpolkit/lxpolkit-listener.c: In function ‘on_completed’:
lxpolkit/lxpolkit-listener.c:92:32: error: passing argument 1 of ‘gtk_entry_set_text’ from incompatible pointer type [-Wincompatible-pointer-types]
92 | gtk_entry_set_text(data->request, "");
| ~~~~^~~~~~~~~
| |
| GtkWidget * {aka struct _GtkWidget *}
In file included from /nix/store/mgk8ipxsq47kq754lp0dnfhhxfq7gkpj-gtk+-2.24.33-dev/include/gtk-2.0/gtk/gtktreeview.h:31,
from /nix/store/mgk8ipxsq47kq754lp0dnfhhxfq7gkpj-gtk+-2.24.33-dev/include/gtk-2.0/gtk/gtkcombobox.h:29,
from /nix/store/mgk8ipxsq47kq754lp0dnfhhxfq7gkpj-gtk+-2.24.33-dev/include/gtk-2.0/gtk/gtk.h:72,
from lxpolkit/lxpolkit.h:26,
from lxpolkit/lxpolkit-listener.c:27:
/nix/store/mgk8ipxsq47kq754lp0dnfhhxfq7gkpj-gtk+-2.24.33-dev/include/gtk-2.0/gtk/gtkentry.h:213:65: note: expected ‘GtkEntry *’ {aka ‘struct _GtkEntry *’} but argument is of type ‘GtkWidget *’ {aka ‘struct _GtkWidget *’}
213 | void gtk_entry_set_text (GtkEntry *entry,
| ~~~~~~~~~~~~~~~^~~~~
lxpolkit/lxpolkit-listener.c:94:29: error: passing argument 1 of ‘on_user_changed’ from incompatible pointer type [-Wincompatible-pointer-types]
94 | on_user_changed(data->id, data);
| ~~~~^~~~
| |
| GtkWidget * {aka struct _GtkWidget *}
Attached is a minimal patch that seems to get it compiling again.
This is already in git:
https://github.com/lxde/lxsession/commit/0eb1a31843691b4e5f3354c153315dcb7ebeda3d