1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 19:29:53 +03:00
aports/community/ccl/gcc14.patch
Celeste 72f4ceee81 community/ccl: fix build with gcc 14
-Wincompatible-pointer-types is now an error in GCC 14.
2024-08-04 04:26:27 +00:00

18 lines
729 B
Diff

This was a warning in GCC 13. For GCC 14, it is now an error:
../lisp-debug.c: In function 'debug_show_fpu':
../lisp-debug.c:1184:10: error: assignment to 'struct _libc_xmmreg *' from incompatible pointer type 'struct <anonymous> *' [-Wincompatible-pointer-types]
1184 | xmmp = &(xp->uc_mcontext.fpregs->_xmm[0]);
| ^
--- a/lisp-kernel/lisp-debug.c
+++ b/lisp-kernel/lisp-debug.c
@@ -1181,7 +1181,7 @@ debug_show_fpu(ExceptionInformation *xp, siginfo_t *info, int arg)
#ifdef LINUX
if (xp->uc_mcontext.fpregs)
- xmmp = &(xp->uc_mcontext.fpregs->_xmm[0]);
+ xmmp = (struct _libc_xmmreg *) &(xp->uc_mcontext.fpregs->_xmm[0]);
else
/* no fp state, apparently */
return debug_continue;