GCC 15 patch

Roland Rosenfeld <[email protected]> Tue, 9 Sep 2025 10:49:35 +0200
Newsgroups gmane.comp.gnu.mailutils.bugs
Message-ID <[email protected]>
--cMvRHnSSAKaVOYy7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi,

in Debian 3.20 still doesn't fully compile but reports two errors.
I found a patch in the Arch Linux repository, which fixes this issues.
Patch should be attached.

Greetings
Roland

--cMvRHnSSAKaVOYy7
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="fix-build-gcc15.patch"
Content-Transfer-Encoding: quoted-printable

Subject: Fix build with GCC 15
Origin: https://gitlab.archlinux.org/archlinux/packaging/packages/mailutils=
/-/blob/main/fix-build.patch
Bug-Debian: https://bugs.debian.org/1097358
=46rom: Sergej Pupykin <[email protected]>
Last-Update: 2025-09-08

--- a/libmailutils/mailer/progmailer.c
+++ b/libmailutils/mailer/progmailer.c
@@ -45,7 +45,7 @@ struct _mu_progmailer
 {
   int fd;
   pid_t pid;
-  void (*sighandler)();
+  void (*sighandler)(int);
   char *command;
 };
=20
--- a/mh/scan.c
+++ b/mh/scan.c
@@ -200,7 +200,7 @@ clear_screen (void)
 	      char *clr =3D tgetstr ("cl", &buffer);
 	      if (clr)
 		{
-		  tputs(clr, 1, (int (*)())putstdout);
+		  tputs(clr, 1, (int (*)(int))putstdout);
 		  return;
 		}
 	    }

--cMvRHnSSAKaVOYy7--