That patch was based on fix from https://sourceforge.net/p/gscan2pdf/bugs/427/. 0001-Execute-magick-instead-of-convert-command.patch is patch for vanilla gscan2pdf.
Tests fail with ImageMagick 7.1.1-33
A consolidated patch is attached. It is based on Chris' work. It deals with all the code and tests. I had to delete t/135_save_tiff_as_ps_with_space.t as pstopdf crashes for me in ghostscript-10.03.1.
Fails to build with libXaw-1.0.16
I excluded that generated file because it's content depends on third-party files the committer has in his system. Not being the maintainer, I cannot replicate that environment and the patch would be too big, obtrusive, and unhelpful. That means it's maintainer task to regenerate that file. Or, ideally, remove it from git repository. You should be able to generate that file with a command like "autoreconf -i -f config", after installing automake, autoconf, libtool, and maybe other utilities.
Correct pointer types for GCC 14
Thanks for merging it. You can close this ticket.
An attached patch fixes the warnings.