Control: tag -1 patch On Wed, Jul 03, 2024 at 12:25:57PM +0000, Matthias Klose wrote: > Package: src:eperl > Version: 2.2.14-23 > Severity: important > Tags: sid trixie > User: debian-...@lists.debian.org > Usertags: ftbfs-gcc-14
> eperl_main.c:290:34: error: initialization of ‘int’ from ‘void *’ makes > integer from pointer without a cast [-Wint-conversion] > 290 | { NULL, 0, NULL, NULL} > | ^~~~ getopt(3) says the last element of this array has to be filled with zeros. Trivial patch attached. This fixes the build for me. Hope this helps, -- Niko Tyni nt...@debian.org
From: Niko Tyni <nt...@debian.org> Date: Mon, 5 Aug 2024 18:59:27 +0100 X-Dgit-Generated: 2.2.14-23 dc2d4e53781529a2d06202f86c52f20ae2c5bedd Subject: Fix type confusion with getopt_long() This caused a build failure with GCC-14 Bug-Debian: https://bugs.debian.org/1074939 --- diff --git a/eperl_main.c b/eperl_main.c index 0f85180..aabafaa 100644 --- a/eperl_main.c +++ b/eperl_main.c @@ -287,7 +287,7 @@ struct option options[] = { { "version", 0, NULL, 'v' }, { "ingredients", 0, NULL, 'V' }, { "help", 0, NULL, 'h' }, - { NULL, 0, NULL, NULL} + { NULL, 0, NULL, '\0' } }; /*