46 fails to compile with GCC 14.x (due to -Wincompatible-function-pointer-types throwing an error)
While building simple-scan 46.0 release for homebrew, I noticed that there is some incompatible function pointer type build failure as shown below:
src/simple-scan.p/page.c:1860:41: error: incompatible function pointer types passing 'gboolean (guint8 *, gsize, GError **, gpointer)' (aka 'int (unsigned char *, unsigned long, struct _GError **, void *)') to parameter of type 'GdkPixbufSaveFunc' (aka 'int (*)(const char *, unsigned long, struct _GError **, void *)') [-Wincompatible-function-pointer-types]
gdk_pixbuf_save_to_callbackv (_tmp17_, ___lambda4__gdk_pixbuf_save_func, _data9_, "png", _tmp18_, _tmp19_, &_inner_error0_);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/Cellar/gdk-pixbuf/2.42.10_1/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h:382:25: note: passing argument to parameter 'save_func' here
GdkPixbufSaveFunc save_func,
^
1 error generated.
relates to https://github.com/Homebrew/homebrew-core/pull/166626