Doesn't build for me
xsane-scan.c:905:3: error: too many arguments to function 'xsane_cancel_save'; expected 0, have 1
905 | xsane_cancel_save(&xsane.cancel_save);
| ^~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
In file included from xsane-scan.c:31:
xsane-save.h:53:13: note: declared here
53 | extern void xsane_cancel_save();
| ^~~~~~~~~~~~~~~~~
xsane-gamma.c:581:70: error: passing argument 2 of 'gtk_timeout_add' from incompatible pointer type [-Wincompatible-pointer-types]
581 | xsane.slider_timer = gtk_timeout_add(XSANE_CONTINUOUS_HOLD_TIME, xsane_slider_hold_event, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~
| |
| gint (*)(void) {aka int (*)(void)}
In file included from /usr/include/gtk-2.0/gtk/gtk.h:121:
/usr/include/gtk-2.0/gtk/gtkmain.h:175:56: note: expected 'GtkFunction' {aka 'int (*)(void *)'} but argument is of type 'gint (*)(void)' {aka 'int (*)(void)'}
175 | GtkFunction function,
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~
xsane-gamma.c:679:74: error: passing argument 2 of 'gtk_timeout_add' from incompatible pointer type [-Wincompatible-pointer-types]
679 | xsane.slider_timer = gtk_timeout_add(XSANE_CONTINUOUS_HOLD_TIME, xsane_slider_hold_event, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~
| |
| gint (*)(void) {aka int (*)(void)}
xsane-save.c:155:6: error: conflicting types for 'xsane_cancel_save'; have 'void(int *)'
155 | void xsane_cancel_save(int *cancel_save)
| ^~~~~~~~~~~~~~~~~
In file included from xsane-save.c:28:
xsane-save.h:53:13: note: previous declaration of 'xsane_cancel_save' with type 'void(void)'
53 | extern void xsane_cancel_save();
| ^~~~~~~~~~~~~~~~~
xsane-gamma.c:693:61: error: passing argument 2 of 'gtk_timeout_add' from incompatible pointer type [-Wincompatible-pointer-types]
693 | xsane.slider_timer = gtk_timeout_add(XSANE_HOLD_TIME, xsane_slider_hold_event, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~
| |
| gint (*)(void) {aka int (*)(void)}
/usr/include/gtk-2.0/gtk/gtkmain.h:175:56: note: expected 'GtkFunction' {aka 'int (*)(void *)'} but argument is of type 'gint (*)(void)' {aka 'int (*)(void)'}
175 | GtkFunction function,
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~
xsane-gamma.c:570:13: note: 'xsane_slider_hold_event' declared here
570 | static gint xsane_slider_hold_event()
| ^~~~~~~~~~~~~~~~~~~~~~~
xsane-gamma.c:1966:82: error: passing argument 2 of 'gtk_timeout_add' from incompatible pointer type [-Wincompatible-pointer-types]
1966 | xsane.batch_scan_gamma_timer = gtk_timeout_add(XSANE_CONTINUOUS_HOLD_TIME * 4, xsane_batch_scan_gamma_event, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| gint (*)(void) {aka int (*)(void)}
/usr/include/gtk-2.0/gtk/gtkmain.h:175:56: note: expected 'GtkFunction' {aka 'int (*)(void *)'} but argument is of type 'gint (*)(void)' {aka 'int (*)(void)'}
175 | GtkFunction function,
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~
xsane-gamma.c:556:13: note: 'xsane_batch_scan_gamma_event' declared here
556 | static gint xsane_batch_scan_gamma_event()
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Pinned Comments
Dreick commented on 2024-08-14 00:49 (UTC)
Added a patch to make it build again