[Pkg-electronics-devel] Bug#1074973: fungw: ftbfs with GCC-14

Niko Tyni ntyni at debian.org
Fri Aug 2 08:53:45 BST 2024


Control: tag -1 patch

On Wed, Jul 03, 2024 at 12:27:01PM +0000, Matthias Klose wrote:
> Package: src:fungw
> Version: 1.2.1-3
> Severity: important
> Tags: sid trixie
> User: debian-gcc at lists.debian.org
> Usertags: ftbfs-gcc-14

> fungw_perl.c: In function ‘fgws_perl_init’:
> fungw_perl.c:286:37: error: assignment to ‘XPV *’ {aka ‘struct xpv *’} from incompatible pointer type ‘perl_ctx_t *’ [-Wincompatible-pointer-types]
>   286 |         ctx->interp->perl_user_data = ctx;
>       |                                     ^
> make[3]: *** [Makefile:36: fungw_perl.o] Error 1

This always warned, but became an error with GCC 14 (already in sid,
so the bug is release critical now.)

The attached patch fixes the build by adding a cast to a void
pointer. I haven't tested the build results in any way.

Hope this helps,
-- 
Niko Tyni   ntyni at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add-explicit-void-pointer-cast-for-perl-.patch
Type: text/x-diff
Size: 1246 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-electronics-devel/attachments/20240802/1d6f2e8e/attachment.patch>


More information about the Pkg-electronics-devel mailing list